Skip to content

Commit 5acf7d8

Browse files
authored
Merge pull request #10482 from matplotlib/auto-backport-of-pr-10454
Backport PR #10454 on branch v2.2.x
2 parents bd344ea + 1f0bd33 commit 5acf7d8

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)