forked from pool/python-pyglet
- Update to version 1.5.7 * Support for Python 2 has been dropped. Python 3.5 is now the minimum supported version. * Added preliminary support for loading 3D models from obj files. * Switched from avbin to ffmpeg for decoding media files. * Many long deprecated methods and attributes have now been removed. * Many more bugfixes and small improvements - Updated pyglet-1.2.4-fix-image-import.patch - Dropped pypng-license.patch OBS-URL: https://build.opensuse.org/request/show/824883 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=26
14 lines
348 B
Diff
14 lines
348 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, ImageSequence
|
|
|
|
|