14
0
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:
Todd R
2017-08-01 16:10:53 +00:00
committed by Git OBS Bridge
parent 10488d1e77
commit b721373fcd
5 changed files with 364 additions and 1 deletions

View 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):