Skip to content

Commit 80ddcfe

Browse files
committed
fix deprecation warning for stopiteration
see pep 479 https://www.python.org/dev/peps/pep-0479/
1 parent 507aca5 commit 80ddcfe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/type1font.py

Lines 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)