diff options
Diffstat (limited to 'babel/numbers.py')
-rw-r--r-- | babel/numbers.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/babel/numbers.py b/babel/numbers.py index 373a9bd..8a341c4 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -24,13 +24,6 @@ import warnings from babel.core import default_locale, Locale, get_global -try: - # Python 2 - long -except NameError: - # Python 3 - long = int - LC_NUMERIC = default_locale('LC_NUMERIC') @@ -371,7 +364,7 @@ def get_decimal_precision(number): def get_decimal_quantum(precision): """Return minimal quantum of a number, as defined by precision.""" - assert isinstance(precision, (int, long, decimal.Decimal)) + assert isinstance(precision, (int, decimal.Decimal)) return decimal.Decimal(10) ** (-precision) |