Fix formatting

This commit is contained in:
ines 2017-05-09 01:15:28 +02:00
parent 2829a024ef
commit 12c3d5fbba
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@ _num_words = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven',
def like_num(text):
text = text.replace(',', '')
text = text.replace('.', '')
text = text.replace(',', '').replace('.', '')
if text.isdigit():
return True
if text.count('/') == 1: