minor fix

This commit is contained in:
Miroslav Stampar 2010-05-24 11:18:47 +00:00
parent 0197f8db5c
commit f718425cf4

View File

@ -157,7 +157,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if kb.dbms == "SQLite": if kb.dbms == "SQLite":
posValueOld = posValue posValueOld = posValue
if posValue < 256: if posValue < 128:
posValue = chr(posValue) posValue = chr(posValue)
else: else:
posValue = unichr(posValue) posValue = unichr(posValue)
@ -197,7 +197,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if retVal < 128: if retVal < 128:
return chr(retVal) return chr(retVal)
else: else:
return unichr(retVal) #test value 50089 return unichr(retVal)
def etaProgressUpdate(charTime, index): def etaProgressUpdate(charTime, index):
if len(progressTime) <= ( (length * 3) / 100 ): if len(progressTime) <= ( (length * 3) / 100 ):