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

Skip to content

Commit 3b26ee6

Browse files
authored
Merge pull request #14238 from meeseeksmachine/auto-backport-of-pr-14164-on-v3.1.x
Backport PR #14164 on branch v3.1.x (Fix regexp for dvipng version detection)
2 parents 13f8d86 + d555baa commit 3b26ee6

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
@@ -330,7 +330,7 @@ def impl(args, regex, min_ver=None):
330330
f"{' '.join(args)}, which output {output}")
331331

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

0 commit comments

Comments
 (0)