Changed if len(history): to if history:

This commit is contained in:
cclauss
2014-05-11 22:47:30 +02:00
parent 85bddf8f00
commit 330524adba
+1 -1
View File
@@ -168,7 +168,7 @@ def run(command, data=None, timeout=None, env=None):
history = []
for c in command:
if len(history):
if history:
# due to broken pipe problems pass only first 10MB
data = history[-1].std_out[0:10*1024]