Skip to content

Commit 1f0bd33

Browse files
tacaswellMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #10454: Set packet_ends = None before using in dviread.py
1 parent bd344ea commit 1f0bd33

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)