We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
long
1 parent 103c214 commit 3add2c1Copy full SHA for 3add2c1
1 file changed
babel/numbers.py
@@ -24,13 +24,6 @@
24
25
from babel.core import default_locale, Locale, get_global
26
27
-try:
28
- # Python 2
29
- long
30
-except NameError:
31
- # Python 3
32
- long = int
33
-
34
35
LC_NUMERIC = default_locale('LC_NUMERIC')
36
@@ -371,7 +364,7 @@ def get_decimal_precision(number):
371
364
372
365
def get_decimal_quantum(precision):
373
366
"""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))
375
368
return decimal.Decimal(10) ** (-precision)
376
369
377
370
0 commit comments