forked from pool/python-pyglet
Accepting request 513624 from home:kkirill:branches:devel:languages:python
- 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
This commit is contained in:
13
pyglet-1.2.4-fix-image-import.patch
Normal file
13
pyglet-1.2.4-fix-image-import.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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):
|
Reference in New Issue
Block a user