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: else:
retVal += output if output else '' retVal += output if output else ''
if not (output and len(output) == chunk_length): if output and len(output) >= chunk_length:
break
else:
offset += chunk_length offset += chunk_length
else:
break
else: else:
retVal = output retVal = output
break break