Changed method (converted string to oct).

develop
Самоукин Алексей 14 years ago
parent 966fd5589e
commit a330fbb1fc

@ -3303,8 +3303,8 @@ re.M|re.S)
def __octToInt(self, strOct):
if strOct:
try:
exec("res =" + "0" + strOct)
except:
res = string.atoi(strOct, 8)
except ValueError:
self.setError(_("Not valid oct value: ") + str(strOct))
return False
return res

Loading…
Cancel
Save