2020-12-10 19:10:25 +00:00
|
|
|
--- 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
|
2020-12-14 10:13:05 +00:00
|
|
|
@@ -32,8 +32,7 @@ def _run_pyglet(fname, fmt):
|
2020-12-10 19:10:25 +00:00
|
|
|
from pyglet.window import key
|
|
|
|
|
|
|
|
if fmt == "png":
|
|
|
|
- from pyglet.image.codecs.png import PNGImageDecoder
|
|
|
|
- img = image.load(fname, decoder=PNGImageDecoder())
|
2020-12-14 10:13:05 +00:00
|
|
|
+ img = image.load(fname)
|
2020-12-10 19:10:25 +00:00
|
|
|
else:
|
|
|
|
raise ValueError("pyglet preview works only for 'png' files.")
|
|
|
|
|