Skip to content

Commit

Permalink
Refer to EOF by its constant everywhere (html5lib#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders authored and jgraham committed Jan 16, 2018
1 parent b4887f0 commit 4b8a119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5lib/_inputstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def charsUntil(self, characters, opposite=False):
def unget(self, char):
# Only one character is allowed to be ungotten at once - it must
# be consumed again before any further call to unget
if char is not None:
if char is not EOF:
if self.chunkOffset == 0:
# unget is called quite rarely, so it's a good idea to do
# more work here if it saves a bit of work in the frequently
Expand Down

0 comments on commit 4b8a119

Please sign in to comment.