mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 21:10:41 +08:00
fix a bug
This commit is contained in:
parent
25aa928628
commit
d4476c1a29
1 changed files with 3 additions and 6 deletions
7
utils.py
7
utils.py
|
@ -72,11 +72,8 @@ def run_cmd(cmd, cwd=None, keepalive=False, KEEPALIVE_TIMEOUT=30, RUN_CMD_TIMEOU
|
||||||
else:
|
else:
|
||||||
self.__file = None
|
self.__file = None
|
||||||
def append(self, mystring):
|
def append(self, mystring):
|
||||||
if self.__short_return:
|
if self.__short_return and super().__len__() >= 20:
|
||||||
if super().__len__() >= 20:
|
super().pop(0)
|
||||||
super.pop(0)
|
|
||||||
super().append(mystring)
|
|
||||||
else:
|
|
||||||
super().append(mystring)
|
super().append(mystring)
|
||||||
if self.__file and type(mystring) is str:
|
if self.__file and type(mystring) is str:
|
||||||
self.__file.write(mystring)
|
self.__file.write(mystring)
|
||||||
|
|
Loading…
Reference in a new issue