forked from pool/python-pyglet
- fix build for oS:Factory (fix examples) - make Brain Workshop work with system pyglet and latest python2 (fix "import Image") - add WMClass to have a proper application name instead of Unknown OBS-URL: https://build.opensuse.org/request/show/513624 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=7
14 lines
370 B
Diff
14 lines
370 B
Diff
Index: pyglet/image/codecs/pil.py
|
|
===================================================================
|
|
--- pyglet/image/codecs/pil.py.orig
|
|
+++ pyglet/image/codecs/pil.py
|
|
@@ -48,7 +48,7 @@ from pyglet.image.codecs import *
|
|
|
|
try:
|
|
import Image
|
|
-except ImportError:
|
|
+except (ImportError, ValueError):
|
|
from PIL import Image
|
|
|
|
class PILImageDecoder(ImageDecoder):
|