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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy