From 25aa92862803b3d27b5f9dbb8f9ce67aa789256f Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 9 Apr 2019 16:34:57 +0800 Subject: [PATCH] len(super)??? --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 20b9a7a..3ee1c53 100644 --- a/utils.py +++ b/utils.py @@ -73,7 +73,7 @@ def run_cmd(cmd, cwd=None, keepalive=False, KEEPALIVE_TIMEOUT=30, RUN_CMD_TIMEOU self.__file = None def append(self, mystring): if self.__short_return: - if len(super()) >= 20: + if super().__len__() >= 20: super.pop(0) super().append(mystring) else: