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

Skip to content

Commit c87b653

Browse files
committed
Remove useless assert
If the class has an internal error triggering this assertion, we will get some errors later from mixing strings and bytestrings.
1 parent 9de07aa commit c87b653

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/matplotlib/dviread.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -901,10 +901,6 @@ def _register(self, words):
901901
# http://tex.stackexchange.com/questions/10826/
902902
# http://article.gmane.org/gmane.comp.tex.pdftex/4914
903903

904-
# input must be bytestrings (the file format is ASCII)
905-
for word in words:
906-
assert isinstance(word, bytes)
907-
908904
texname, psname = words[:2]
909905
words = words[2:]
910906
effects, encoding, filename = b'', None, None

0 commit comments

Comments
 (0)