8000 Refer to EOF by its constant everywhere (#388) · omunroe-com/html5lib-python@4b8a119 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b8a119

Browse files
gsneddersjgraham
authored andcommitted
Refer to EOF by its constant everywhere (html5lib#388)
1 parent b4887f0 commit 4b8a119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/_inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def charsUntil(self, characters, opposite=False):
367367
def unget(self, char):
368368
# Only one character is allowed to be ungotten at once - it must
369369
# be consumed again before any further call to unget
370-
if char is not None:
370+
if char is not EOF:
371371
if self.chunkOffset == 0:
372372
# unget is called quite rarely, so it's a good idea to do
373373
# more work here if it saves a bit of work in the frequently

0 commit comments

Comments
 (0)
0