mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
xrange has been dropped in python3
This commit is contained in:
@@ -1824,7 +1824,7 @@ def gnc_numeric_from_decimal(decimal_value):
|
|||||||
numerator_place_value = 1
|
numerator_place_value = 1
|
||||||
# add each digit to the final value multiplied by the place value
|
# add each digit to the final value multiplied by the place value
|
||||||
# from least significant to most sigificant
|
# from least significant to most sigificant
|
||||||
for i in xrange(len(digits)-1,-1,-1):
|
for i in range(len(digits)-1,-1,-1):
|
||||||
numerator += digits[i] * numerator_place_value
|
numerator += digits[i] * numerator_place_value
|
||||||
numerator_place_value *= TEN
|
numerator_place_value *= TEN
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user