[tvigle] Adapt to the new API

This commit is contained in:
Sergey M․ 2014-09-03 19:59:36 +07:00
parent 7d4d5f25ed
commit 884ae74785
2 changed files with 43 additions and 41 deletions

View file

@ -1321,7 +1321,7 @@ def str_to_int(int_str):
""" A more relaxed version of int_or_none """
if int_str is None:
return None
int_str = re.sub(r'[,\.]', u'', int_str)
int_str = re.sub(r'[,\.\+]', u'', int_str)
return int(int_str)