[tvigle] Adapt to the new API
This commit is contained in:
parent
7d4d5f25ed
commit
884ae74785
2 changed files with 43 additions and 41 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue