Message303490
>>> import xml.sax
>>> import pathlib
[...]
>>> xml.sax.parse(pathlib.Path('path/to/file'), handler)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/xml/sax/__init__.py", line 33, in parse
parser.parse(source)
File "/usr/lib/python3.6/xml/sax/expatreader.py", line 105, in parse
source = saxutils.prepare_input_source(source)
File "/usr/lib/python3.6/xml/sax/saxutils.py", line 355, in prepare_input_source
if source.getCharacterStream() is None and source.getByteStream() is None:
AttributeError: 'PosixPath' object has no attribute 'getCharacterStream' |
|
Date |
User |
Action |
Args |
2017-10-01 20:51:11 | craigh | set | recipients:
+ craigh |
2017-10-01 20:51:11 | craigh | set | messageid: <1506891071.57.0.213398074469.issue31658@psf.upfronthosting.co.za> |
2017-10-01 20:51:11 | craigh | link | issue31658 messages |
2017-10-01 20:51:11 | craigh | create | |
|