len(super)???

This commit is contained in:
JerryXiao 2019-04-09 16:34:57 +08:00
parent 85551c0265
commit 25aa928628
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -73,7 +73,7 @@ def run_cmd(cmd, cwd=None, keepalive=False, KEEPALIVE_TIMEOUT=30, RUN_CMD_TIMEOU
self.__file = None self.__file = None
def append(self, mystring): def append(self, mystring):
if self.__short_return: if self.__short_return:
if len(super()) >= 20: if super().__len__() >= 20:
super.pop(0) super.pop(0)
super().append(mystring) super().append(mystring)
else: else: