Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f6fb31

Browse filesBrowse files
authored
Merge pull request #6950 from jenshnielsen/fixdeprecationwarning
MNT: fix deprecation warning for stopiteration
2 parents 507aca5 + 80ddcfe commit 1f6fb31
Copy full SHA for 1f6fb31

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎lib/matplotlib/type1font.py

Copy file name to clipboardExpand all lines: lib/matplotlib/type1font.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ def suppress(tokens):
306306
b'/FontMatrix': replace(fontmatrix),
307307
b'/UniqueID': suppress}
308308

309-
while True:
310-
token, value = next(tokens)
309+
for token, value in tokens:
311310
if token is cls._name and value in table:
312311
for value in table[value](itertools.chain([(token, value)],
313312
tokens)):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.