diff --git a/sympy-png-decoder.patch b/sympy-png-decoder.patch index a51871a..876cdb6 100644 --- a/sympy-png-decoder.patch +++ b/sympy-png-decoder.patch @@ -1,13 +1,12 @@ --- sympy-sympy-1.7/sympy/printing/preview.py.orig 2020-11-29 04:02:22.000000000 -0700 +++ sympy-sympy-1.7/sympy/printing/preview.py 2020-12-10 10:55:53.290413553 -0700 -@@ -32,8 +32,8 @@ def _run_pyglet(fname, fmt): +@@ -32,8 +32,7 @@ def _run_pyglet(fname, fmt): from pyglet.window import key if fmt == "png": - from pyglet.image.codecs.png import PNGImageDecoder - img = image.load(fname, decoder=PNGImageDecoder()) -+ from pyglet.image.codecs.pil import PILImageDecoder -+ img = image.load(fname, decoder=PILImageDecoder()) ++ img = image.load(fname) else: raise ValueError("pyglet preview works only for 'png' files.")