Tags: patch

You can find attached two patches. The first corrects the namespace of PIL
imports in cfv 1.18.3. The second one replaces the dependency on python-imaging
with python-pil.
--- a/cfv
+++ b/cfv
@@ -1837,7 +1837,7 @@
 	if filename == '':
 		return '0','0'
-		import Image
+		from PIL import Image
 		return map(str, im1.size)
 	except (ImportError, IOError):
@@ -1910,7 +1910,7 @@
 		file.write('Generated at: %s\n'%time.strftime('%a, %d %b %Y %H:%M:%S',time.gmtime(time.time())))
 		file.write('Find  it  at: http://cfv.sourceforge.net/\n\n')
-			import Image
+			from PIL import Image
 			self.use_dimensions=1 ####should this be made optional somehow?
 		except ImportError:
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@
 Package: cfv
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
-Suggests: python-imaging, bittorrent | bittornado
+Suggests: python-pil, bittorrent | bittornado
 Description: versatile file checksum creator and verifier
  cfv is a utility to test and create a wide range of checksum
  verification files. It currently supports testing and creating

Reply via email to