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

Skip to content

Commit 461264e

Browse files
committed
Add breaks to match original
1 parent 5728b56 commit 461264e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ def checkdep_inkscape():
403403
for line in lines:
404404
if 'Inkscape' in line:
405405
v = line.split()[1]
406+
break
406407
return v
407408
except (IndexError, ValueError, UnboundLocalError, OSError):
408409
return None
@@ -416,6 +417,7 @@ def checkdep_xmllint():
416417
for line in lines:
417418
if 'version' in line:
418419
v = line.split()[-1]
420+
break
419421
return v
420422
except (IndexError, ValueError, UnboundLocalError, OSError):
421423
return None

0 commit comments

Comments
 (0)