8000 Ruby Tokenizer tests resync with Anne's work of today · awesome-python/html5lib-python@2213b78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2213b78

Browse files
committed
Ruby Tokenizer tests resync with Anne's work of today
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40772
1 parent feb3f51 commit 2213b78

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/tokenizer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def consumeEntity(self):
205205
self.stream.queue.extend(charStack)
206206
self.tokenQueue.append({"type": "ParseError", "data":
207207
_("Numeric entity expected but none found.")})
208-
# Break out if we reach the end of the file
209208
else:
210209
# At this point in the process might have named entity. Entities
211210
# are stored in the global variable "entities".

tests/mockParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sys
2-
#import hotshot, hotshot.stats
32
import os
43

54
if __name__ == '__main__':
@@ -21,6 +20,7 @@ def parse(self, stream, output=True):
2120
x = HTMLParser()
2221
if len(sys.argv) > 1:
2322
if len(sys.argv) > 2:
23+
import hotshot, hotshot.stats
2424
prof = hotshot.Profile('stats.prof')
2525
prof.runcall(x.parse, sys.argv[1], False)
2626
prof.close()

0 commit comments

Comments
 (0)
0