File calibre-0.9.38-pillow.patch of Package calibre

diff -Nur calibre.orig/src/calibre/test_build.py calibre/src/calibre/test_build.py
--- calibre.orig/src/calibre/test_build.py	2013-07-05 13:10:05.381104153 -0600
+++ calibre/src/calibre/test_build.py	2013-07-05 13:11:28.236681380 -0600
@@ -74,12 +74,6 @@
     else:
         raise RuntimeError('ImageMagick choked!')
     from PIL import Image
-    try:
-        import _imaging, _imagingmath, _imagingft
-        _imaging, _imagingmath, _imagingft
-    except ImportError:
-        from PIL import _imaging, _imagingmath, _imagingft
-    _imaging, _imagingmath, _imagingft
     i = Image.open(cStringIO.StringIO(data))
     if i.size < (20, 20):
         raise RuntimeError('PIL choked!')
openSUSE Build Service is sponsored by