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
parent
4be6fb75e3
commit
a7e772f10a
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue