public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-gfx/fontypython/files: fontypython-pillow.patch
@ 2013-09-09  4:29 Mike Gilbert (floppym)
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert (floppym) @ 2013-09-09  4:29 UTC (permalink / raw
  To: gentoo-commits

floppym     13/09/09 04:29:16

  Added:                fontypython-pillow.patch
  Log:
  Fix PIL imports for pillow, bug 471524.
  
  (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

Revision  Changes    Path
1.1                  media-gfx/fontypython/files/fontypython-pillow.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/fontypython/files/fontypython-pillow.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/fontypython/files/fontypython-pillow.patch?rev=1.1&content-type=text/plain

Index: fontypython-pillow.patch
===================================================================
https://bugs.gentoo.org/show_bug.cgi?id=471524

diff --git a/fontypythonmodules/fontcontrol.py b/fontypythonmodules/fontcontrol.py
index e156758..cff34f5 100644
--- a/fontypythonmodules/fontcontrol.py
+++ b/fontypythonmodules/fontcontrol.py
@@ -16,7 +16,7 @@
 ##	along with Fonty Python.  If not, see <http://www.gnu.org/licenses/>.
 
 import os, sys, locale, glob, errno
-import Image, ImageFont, ImageDraw 
+from PIL import Image, ImageFont, ImageDraw 
 import fontybugs, fpsys
 from pathcontrol import *
 
diff --git a/fontypythonmodules/fpsys.py b/fontypythonmodules/fpsys.py
index f9572ae..fa1a98f 100644
--- a/fontypythonmodules/fpsys.py
+++ b/fontypythonmodules/fpsys.py
@@ -159,7 +159,7 @@ def checkFonts( dirtocheck, printer ):
 	global segfonts
 	
 	code = """
-import ImageFont
+from PIL import ImageFont
 try:
 	font=ImageFont.truetype("%s", 24, 0)
 	dud=font.getname()
diff --git a/fontypythonmodules/sanitycheck.py b/fontypythonmodules/sanitycheck.py
index cf4fcc1..7e46e9a 100644
--- a/fontypythonmodules/sanitycheck.py
+++ b/fontypythonmodules/sanitycheck.py
@@ -24,7 +24,7 @@ import imp
 
 ## PIL : Is it there?
 try: 
-	import Image, ImageFont, ImageDraw 
+	from PIL import Image, ImageFont, ImageDraw 
 except: 
 	print strings.PILError
 	raise SystemExit





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-09  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-09  4:29 [gentoo-commits] gentoo-x86 commit in media-gfx/fontypython/files: fontypython-pillow.patch Mike Gilbert (floppym)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox