minor fix for cases when the retrieved output is safe encoded (like for --os-shell)

This commit is contained in:
Miroslav Stampar 2011-05-03 16:14:03 +00:00
parent 4d4e3802e4
commit e6f010734e

View File

@ -113,10 +113,10 @@ def __oneShotErrorUse(expression, field):
else:
retVal += output if output else ''
if not (output and len(output) == chunk_length):
break
else:
if output and len(output) >= chunk_length:
offset += chunk_length
else:
break
else:
retVal = output
break