Minor fix (Issue #305)

This commit is contained in:
Miroslav Stampar 2013-01-07 18:39:35 +01:00
parent e219fad8bf
commit a8f02916a9

View File

@ -116,7 +116,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if length == 0:
return 0, ""
if (lastChar > 0 or firstChar > 0):
if length and (lastChar > 0 or firstChar > 0):
length = min(length, lastChar or length) - firstChar
showEta = conf.eta and isinstance(length, int)