mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Revert "Remove unnecessary fileno method from FileObjectWrapper"
This partially addresses issue #65.
This reverts commit c87d7bc6f3
.
This commit is contained in:
parent
f450ef5ff4
commit
cab8d56746
@ -70,6 +70,9 @@ 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):
|
||||
|
Loading…
Reference in New Issue
Block a user