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

Skip to content

Commit a20fdb9

Browse files
authored
Merge pull request #10454 from cclauss/patch-1
MNT: Set packet_ends = None before using in dviread.py
2 parents 78c484e + a060141 commit a20fdb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/dviread.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ def _read(self):
640640
Read one page from the file. Return True if successful,
641641
False if there were no more pages.
642642
"""
643-
packet_len, packet_char, packet_width = None, None, None
643+
packet_char, packet_ends = None, None
644+
packet_len, packet_width = None, None
644645
while True:
645646
byte = ord(self.file.read(1)[0])
646647
# If we are in a packet, execute the dvi instructions

0 commit comments

Comments
 (0)