[gen] When duplicating a file via appy.fields.file::FileInfo.replicateFile, the source file can be binary data in a str instead of an opened file handler.
This commit is contained in:
parent
ae69509354
commit
a671094167
3 changed files with 6 additions and 1 deletions
|
@ -249,6 +249,7 @@ class XmlParser(ContentHandler, ErrorHandler):
|
|||
from cStringIO import StringIO
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
self._xml = xml
|
||||
self.parser.setContentHandler(self)
|
||||
self.parser.setErrorHandler(self)
|
||||
self.parser.setFeature(feature_external_ges, False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue