From cab8d56746355b158087ed64ad067d66e07f8f31 Mon Sep 17 00:00:00 2001 From: joo Date: Tue, 18 Jul 2017 13:33:16 +0100 Subject: [PATCH] Revert "Remove unnecessary fileno method from FileObjectWrapper" This partially addresses issue #65. This reverts commit c87d7bc6f3a06cdb27134fc713e8163693068e81. --- minecraft/networking/encryption.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minecraft/networking/encryption.py b/minecraft/networking/encryption.py index 5d463d1..39fabf6 100644 --- a/minecraft/networking/encryption.py +++ b/minecraft/networking/encryption.py @@ -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):