[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart
Colin Stewart added the comment: Adding second patch. -- Added file: http://bugs.python.org/file14702/expatreader.py.patch2 ___ Python tracker <http://bugs.python.org/issue6

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart
Colin Stewart added the comment: I'm not familiar with the inner workings of the expat integration with Python, so the attached patches need careful review. The first patch (expatreader.py.patch) is the minimum to resolve this issue. The second patch (expatreader.py.patch2) also expose

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-11 Thread Colin Stewart
New submission from Colin Stewart : The documentation for the xml.sax.handler.property_xml_string SAX property states that it should be "data type: String". However when retrieving this value in Python 3.1 it returns a bytes object instead. This makes handling the returned value very