Revision: 8333 Author: xqt Date: 2010-06-25 16:28:39 +0000 (Fri, 25 Jun 2010)
Log Message: ----------- move test script to tests folder
Added Paths: ----------- trunk/pywikipedia/tests/test_xml.py
Removed Paths: ------------- trunk/pywikipedia/xmltest.py
Copied: trunk/pywikipedia/tests/test_xml.py (from rev 8326, trunk/pywikipedia/xmltest.py) =================================================================== --- trunk/pywikipedia/tests/test_xml.py (rev 0) +++ trunk/pywikipedia/tests/test_xml.py 2010-06-25 16:28:39 UTC (rev 8333) @@ -0,0 +1,19 @@ +"""This is a minimal script to parse an XML file such as the sax_parse_bug.dat +dumps that interwiki.py can make if something fails. The only goal of this +program is to get a stack trace listing line number and column of the invalid +character in the XML. + +Pass this script the name of an XML file as argument. +""" +# +# (C) Rob W.W. Hooft, 2003 +# +# Distributed under the terms of the MIT license. +# +__version__ = '$Id$' +# +import sys, xml.sax, xml.sax.handler + +h = xml.sax.handler.ContentHandler() +xml.sax.parse(open(sys.argv[1], 'r'), h) +
Deleted: trunk/pywikipedia/xmltest.py =================================================================== --- trunk/pywikipedia/xmltest.py 2010-06-25 15:02:58 UTC (rev 8332) +++ trunk/pywikipedia/xmltest.py 2010-06-25 16:28:39 UTC (rev 8333) @@ -1,19 +0,0 @@ -"""This is a minimal script to parse an XML file such as the sax_parse_bug.dat -dumps that interwiki.py can make if something fails. The only goal of this -program is to get a stack trace listing line number and column of the invalid -character in the XML. - -Pass this script the name of an XML file as argument. -""" -# -# (C) Rob W.W. Hooft, 2003 -# -# Distributed under the terms of the MIT license. -# -__version__ = '$Id$' -# -import sys, xml.sax, xml.sax.handler - -h = xml.sax.handler.ContentHandler() -xml.sax.parse(open(sys.argv[1], 'r'), h) -