diff options
author | Aarni Koskela <akx@iki.fi> | 2022-11-02 08:32:14 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2022-11-02 08:32:14 +0200 |
commit | 989305f5426020a3c66b4b8a69e4f65f5b46374f (patch) | |
tree | 1b1ecec17b6a14328092bd90c526c31ee9c15029 | |
parent | f7af1b72e765278b3431de3f3b92c6b9a189b18e (diff) | |
download | babel-py2-long.tar.gz |
Remove vestigial Python 2 `long` checkpy2-long
-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) |