Skip to content

Commit

Permalink
Minor corrections: it looks like parse errors are ready for prime tim…
Browse files Browse the repository at this point in the history
…e in the

python version either...

--HG--
extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40718
  • Loading branch information
rubys committed Jun 12, 2007
1 parent 116ec42 commit 6b84e2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def printOutput(parser, document, opts):
elif opts.hilite:
sys.stdout.write(document.hilite("utf-8"))
else:
print document
if not hasattr(document,'__iter__'): document = [document]
if not hasattr(document,'__getitem__'): document = [document]
for fragment in document:
print parser.tree.testSerializer(fragment).encode("utf-8")
if opts.error:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def main():
if '-p' in sys.argv: # suppress check for parse errors
sys.argv.remove('-p')
global checkParseErrors
checkParseErrors = False
checkParseErrors = True

buildTestSuite()
unittest.main()
Expand Down

0 comments on commit 6b84e2a

Please sign in to comment.