From 681b31f6874caffa7398e78362af951fc380461e Mon Sep 17 00:00:00 2001 From: Geoffrey Sneddon Date: Tue, 16 Jan 2018 02:58:54 +0000 Subject: [PATCH] Refer to EOF by its constant everywhere --- html5lib/_inputstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5lib/_inputstream.py b/html5lib/_inputstream.py index 177f0ab9..aabc7b88 100644 --- a/html5lib/_inputstream.py +++ b/html5lib/_inputstream.py @@ -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 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