Make an open() file mode explicitly binary.

It already was binary, due to the `from codecs import open as open`,
however we should be more explicit.
fix/89-python3
Isis Lovecruft 2015-03-11 04:01:28 +00:00
parent 4be6fb75e3
commit a7e772f10a
No known key found for this signature in database
GPG Key ID: 18C16EC5F9F1D673
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ class GPGBase(object):
if output_filename:
log.info("Writing encrypted output to file: %s" % output_filename)
with open(output_filename, 'w+') as fh:
with open(output_filename, 'wb') as fh:
fh.write(result.data)
fh.flush()
log.info("Encrypted output written successfully.")