File pyglet-1.2.4-fix-image-import.patch of Package python-pyglet

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
 

openSUSE Build Service is sponsored by