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

Skip to content

Commit ea21cc6

Browse files
committed
Simplify array initialization
1 parent 87786b1 commit ea21cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dviread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class Dvi(object):
180180
>>> print(''.join(unichr(t.glyph) for t in page.text))
181181
"""
182182
# dispatch table
183-
_dtable = [None for _ in range(256)]
183+
_dtable = [None] * 256
184184
_dispatch = partial(_dispatch, _dtable)
185185

186186
def __init__(self, filename, dpi):

0 commit comments

Comments
 (0)