Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1db023

Browse files
committed
Fix regexp for dvipng version detection
1 parent fc8638e commit c1db023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def impl(args, regex, min_ver=None):
331331
f"{' '.join(args)}, which output {output}")
332332

333333
if name == "dvipng":
334-
return impl(["dvipng", "-version"], "(?m)^dvipng .* (.+)", "1.6")
334+
return impl(["dvipng", "-version"], "(?m)^dvipng(?: .*)? (.+)", "1.6")
335335
elif name == "gs":
336336
execs = (["gswin32c", "gswin64c", "mgs", "gs"] # "mgs" for miktex.
337337
if sys.platform == "win32" else

0 commit comments

Comments
 (0)