Fix several bugs caused or exposed by running in Python 3.

This commit is contained in:
joo committed 2016-06-17 20:38:18 +01:00
1 parent 471350cea8
commit c8b3e7a809
6 files changed
+15 -23

No files matched your search

+2
View File
@@ -70,6 +70,8 @@ class EncryptedFileObjectWrapper(object):
def read(self, length):
return self.decryptor.update(self.actual_file_object.read(length))
def fileno(self):
return self.actual_file_object.fileno()
class EncryptedSocketWrapper(object):
def __init__(self, socket, encryptor, decryptor):