Set mode default in client.open to 'rb' for reading bytes

pull/35/head
tuxxy 2017-09-11 13:36:55 -07:00
parent 5b4db3ac94
commit c60bc89c86
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class Client(object):
cipher = self._symm(key)
return cipher.decrypt(edata)
def open(self, pubkey=None, path=None, mode='r', fd=None, algorithm=None):
def open(self, pubkey=None, path=None, mode='rb', fd=None, algorithm=None):
"""
The main interface through which Python API will work.