Skip to content

Commit 3add2c1

Browse files
authored
Remove vestigial Python 2 long check (#925)
1 parent 103c214 commit 3add2c1

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

babel/numbers.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424

2525
from babel.core import default_locale, Locale, get_global
2626

27-
try:
28-
# Python 2
29-
long
30-
except NameError:
31-
# Python 3
32-
long = int
33-
3427

3528
LC_NUMERIC = default_locale('LC_NUMERIC')
3629

@@ -371,7 +364,7 @@ def get_decimal_precision(number):
371364

372365
def get_decimal_quantum(precision):
373366
"""Return minimal quantum of a number, as defined by precision."""
374-
assert isinstance(precision, (int, long, decimal.Decimal))
367+
assert isinstance(precision, (int, decimal.Decimal))
375368
return decimal.Decimal(10) ** (-precision)
376369

377370

0 commit comments

Comments
 (0)