python-gnupg/gnupg
Isis Lovecruft 43164fa7db
Fix Python3 stream encoding issues in _copy_data().
These issues were introduced in f8ccdc50.  Because we no longer convert
everything to an io.BytesIO in _encrypt() with _make_binary_stream(),
all io.StringIO()s which are passed through must take encoded strings
and io.BytesIO()s must take bytes (and there is actually a difference
with Python3).

Additionally, there appears to be an issue where the `outstream` passed
to _copy_data() is sometimes a _io.BufferedWriter and other times an
encodings.utf_8.StreamWriter.  I am not sure yet where this problem was
introduced.  For now, the workaround for dealing with the Python3
bytes/str io.BytesIO/io.StringIO problem also provides a workaround for
this issue.

 * FIXES #88.
 * FIXES #89 for Python3.
 * FIXES #93.
2015-03-13 02:45:05 +00:00
..
test Fix multiple encoding errors in tests. 2015-03-13 02:32:51 +00:00
__init__.py fix sphinx errors&warnings; some pep8 2013-10-14 01:24:17 -03:00
_ansistrm.py Change LICENSE to GPLv3+, after discussion with intrigeri. 2013-07-27 19:27:53 +00:00
_logger.py more py2.6 fixes 2014-04-23 14:49:24 +02:00
_meta.py Make an open() file mode explicitly binary. 2015-03-13 02:32:52 +00:00
_parsers.py Handle [GOOD|BAD|MISSING]_PASSPHRASE statuses in _parsers.ListPackets. 2015-03-11 03:25:55 +00:00
_trust.py properly pass argument during trustdb repair 2014-10-02 04:56:56 -05:00
_util.py Fix Python3 stream encoding issues in _copy_data(). 2015-03-13 02:45:05 +00:00
_version.py Change versioneer parameters in gnupg/_version.py to match setup.py. 2014-11-19 21:44:53 +00:00
copyleft.py Change LICENSE to GPLv3+, after discussion with intrigeri. 2013-07-27 19:27:53 +00:00
gnupg.py Fix potential UnicodeEncodeError in gen_key_input(). 2015-03-13 02:32:52 +00:00