- Initial spec for v0.4, with Pillow-imports.patch to workaround problems caused by top level Image.py OBS-URL: https://build.opensuse.org/request/show/677999 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pyssim?expand=0&rev=1
22 lines
487 B
Diff
22 lines
487 B
Diff
--- pyssim-0.4/ssim/compat.py.orig 2019-02-21 11:51:21.441139164 +0700
|
|
+++ pyssim-0.4/ssim/compat.py 2019-02-21 11:51:49.633337140 +0700
|
|
@@ -11,14 +11,14 @@
|
|
# pylint: disable=unused-import
|
|
|
|
try:
|
|
- import Image
|
|
-except ImportError:
|
|
from PIL import Image
|
|
+except ImportError:
|
|
+ import Image
|
|
|
|
try:
|
|
- import ImageOps
|
|
-except ImportError:
|
|
from PIL import ImageOps
|
|
+except ImportError:
|
|
+ import ImageOps
|
|
|
|
if sys.version_info[0] > 2:
|
|
basestring = (str, bytes)
|