mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 14:52:25 +00:00
Activate flake8, isort and coveralls in the configuration of tox (#105)
* Activate flake8, isort and coveralls in the configuration of tox * Update code to respect PEP8 * Fix bug in the lang_IT for python 3 * Update the README to include the new converters.
This commit is contained in:
committed by
GitHub
parent
c6015db8b4
commit
3da0c54f3b
@@ -18,8 +18,8 @@ from __future__ import unicode_literals
|
||||
|
||||
import math
|
||||
|
||||
from .orderedmapping import OrderedMapping
|
||||
from .compat import to_s
|
||||
from .orderedmapping import OrderedMapping
|
||||
|
||||
|
||||
class Num2Word_Base(object):
|
||||
@@ -250,17 +250,17 @@ class Num2Word_Base(object):
|
||||
def test(self, value):
|
||||
try:
|
||||
_card = self.to_cardinal(value)
|
||||
except:
|
||||
except Exception:
|
||||
_card = "invalid"
|
||||
|
||||
try:
|
||||
_ord = self.to_ordinal(value)
|
||||
except:
|
||||
except Exception:
|
||||
_ord = "invalid"
|
||||
|
||||
try:
|
||||
_ordnum = self.to_ordinal_num(value)
|
||||
except:
|
||||
except Exception:
|
||||
_ordnum = "invalid"
|
||||
|
||||
print("For %s, card is %s;\n\tord is %s; and\n\tordnum is %s."
|
||||
|
||||
Reference in New Issue
Block a user