@@ -190,11 +190,11 @@ def consumeNumberEntity(self, isHex):
190190 # smaller) we need to do the "windows trick".
191191 if 127 < charAsInt < 160 :
192192 charAsInt = entitiesWindows1252 [128 - charAsInt ]
193-
193+
194194 # 0 is not a good number.
195195 if charAsInt == 0 :
196196 charAsInt = 65533
197-
197+
198198 try :
199199 # XXX We should have a separate function that does "int" to
200200 # "unicodestring" conversion since this doesn't always work
@@ -219,7 +219,7 @@ def consumeEntity(self):
219219 charStack .append (self .consumeChar ())
220220 charStack .append (self .consumeChar ())
221221 if EOF in charStack :
222- #If we reach the end of the file put everything up to EOF
222+ #If we reach the end of the file put everything up to EOF
223223 #back in the queue
224224 charStack = charStack [:charStack .index (EOF )]
225225 self .characterQueue .extend (charStack )
@@ -258,9 +258,9 @@ def entitiesStartingWith(name):
258258 if charStack [- 1 ] == EOF :
259259 EOFReached = True
260260 break
261-
261+
262262 # At this point we have the name of the named entity or nothing.
263- if EOFReached :
263+ if EOFReached :
264264 self .parser .parseError ()
265265 self .characterQueue .extend (charStack )
266266 else :
@@ -615,7 +615,7 @@ def markupDeclarationOpenState(self):
615615 for x in xrange (5 ):
616616 charStack .append (self .consumeChar ())
617617 #XXX - put in explicit None check
618- if (not EOF in charStack and
618+ if (not EOF in charStack and
619619 "" .join (charStack ).upper () == u"DOCTYPE" ):
620620 self .changeState ("doctype" )
621621 else :
0 commit comments