1 |
qnikst 13/05/28 20:00:46 |
2 |
|
3 |
Added: cropgui-0.1.1-PIL.patch |
4 |
Log: |
5 |
fix deprecated imports by Mikle Kolyada (#471530) |
6 |
|
7 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0xEAD50D64D8D3571A!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: cropgui-0.1.1-PIL.patch |
16 |
=================================================================== |
17 |
Только в cropgui: cropgui-0.1.1-PIL.patch |
18 |
diff -ru cropgui.orig/cropgui_common.py cropgui/cropgui_common.py |
19 |
--- cropgui.orig/cropgui_common.py 2009-07-24 06:15:12.000000000 +0400 |
20 |
+++ cropgui/cropgui_common.py 2013-05-28 21:48:24.000000000 +0400 |
21 |
@@ -13,9 +13,9 @@ |
22 |
# You should have received a copy of the GNU General Public License |
23 |
# along with this program; if not, write to the Free Software |
24 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
25 |
-import Image |
26 |
-import ImageFilter |
27 |
-import ImageDraw |
28 |
+from PIL import Image |
29 |
+from PIL import ImageFilter |
30 |
+from PIL import ImageDraw |
31 |
import subprocess |
32 |
import threading |
33 |
import Queue |
34 |
diff -ru cropgui.orig/filechooser.py cropgui/filechooser.py |
35 |
--- cropgui.orig/filechooser.py 2009-07-24 06:15:12.000000000 +0400 |
36 |
+++ cropgui/filechooser.py 2013-05-28 21:50:16.000000000 +0400 |
37 |
@@ -8,7 +8,7 @@ |
38 |
import gobject |
39 |
|
40 |
import os |
41 |
-import Image |
42 |
+from PIL import Image |
43 |
|
44 |
HIGH_WATER, LOW_WATER = 25, 5 |
45 |
image_cache = {} |