From 0becf95dfe1d4eef43af17da99e8ecb92595aa79 Mon Sep 17 00:00:00 2001 From: YuriCat Date: Tue, 21 Nov 2023 22:59:37 +0900 Subject: [PATCH] Revert "chore: remove fileno() inferface from PickledConnection" This reverts commit 31b8fb9b486ee6db93bef125da8197fcb1e328d1. --- handyrl/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handyrl/connection.py b/handyrl/connection.py index 8b01d555..49a176ee 100755 --- a/handyrl/connection.py +++ b/handyrl/connection.py @@ -29,6 +29,9 @@ def close(self): self.conn.close() self.conn = None + def fileno(self): + return self.conn.fileno() + def _recv(self, size): buf = io.BytesIO() while size > 0: