This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JocelynJ
Recipients JocelynJ
Date 2014-11-21.23:54:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416614051.05.0.415744285702.issue22915@psf.upfronthosting.co.za>
In-reply-to
Content
With the attached code, and an xml file, I got the following error with python 3.4.2:

$ cat toto.xml
<?xml version='1.0' encoding='UTF-8'?>
<test></test>


$ python3.4 toto.py 
Traceback (most recent call last):
  File "toto.py", line 10, in <module>
    parse(proc.stdout, ContentHandler())
  File "/usr/lib/python3.4/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/lib/python3.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.4/xml/sax/xmlreader.py", line 119, in parse
    self.prepareParser(source)
  File "/usr/lib/python3.4/xml/sax/expatreader.py", line 111, in prepareParser
    self._parser.SetBase(source.getSystemId())
TypeError: must be str, not int


The same test works with python2, and I would expect the code to work with python 3 too.


Thanks,
Jocelyn
History
Date User Action Args
2014-11-21 23:54:11JocelynJsetrecipients: + JocelynJ
2014-11-21 23:54:11JocelynJsetmessageid: <1416614051.05.0.415744285702.issue22915@psf.upfronthosting.co.za>
2014-11-21 23:54:11JocelynJlinkissue22915 messages
2014-11-21 23:54:10JocelynJcreate