Do not force a Pyglet image decoder for preview
This commit is contained in:
parent
f3a1574fa3
commit
e3481ee098
@ -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.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user