Dave Kuhlman
2017-01-12 00:22:05 UTC
Andrii,
Your suggestion sounds reasonable. We definitely do not want an
exception. I'll take a look. I need to try to make sure that the
change you suggest would not cause problems with Python 2 or Python 3
or some other data.
Thanks for the report.
By the way, I took a quick look at your Web site
(http://www.ebi.ac.uk/, right?) and it looks like you do incredible
and fascinating work.
Dave
Your suggestion sounds reasonable. We definitely do not want an
exception. I'll take a look. I need to try to make sure that the
change you suggest would not cause problems with Python 2 or Python 3
or some other data.
Thanks for the report.
By the way, I took a quick look at your Web site
(http://www.ebi.ac.uk/, right?) and it looks like you do incredible
and fascinating work.
Dave
Dear Dave,
We have encountered the following issue: when an export generated for a
outfile.write((quote_xml(self.valueOf_) if type(self.valueOf_) is str else
self.gds_encode(str(self.valueOf_))))
However, if this complex type element is a unicode string, then
str(self.valueOf_) results in UnicodeEncodeError. Please could you tell if
it would be possible to add a condition that, in addition to checking
whether type(self.valueOf_) is str, will check if type(self.valueOf_) is
unicode, and if so, then apply self.gds_encode directly to self.valueOf_?
Or, perhaps, there is a better solution to this?
Many thanks and best regards,
Andrii
We have encountered the following issue: when an export generated for a
outfile.write((quote_xml(self.valueOf_) if type(self.valueOf_) is str else
self.gds_encode(str(self.valueOf_))))
However, if this complex type element is a unicode string, then
str(self.valueOf_) results in UnicodeEncodeError. Please could you tell if
it would be possible to add a condition that, in addition to checking
whether type(self.valueOf_) is str, will check if type(self.valueOf_) is
unicode, and if so, then apply self.gds_encode directly to self.valueOf_?
Or, perhaps, there is a better solution to this?
Many thanks and best regards,
Andrii
--
Dave Kuhlman
http://www.davekuhlman.org
Dave Kuhlman
http://www.davekuhlman.org