diff --git a/bindings/python/example_scripts/rest-api/gnucash_rest.py b/bindings/python/example_scripts/rest-api/gnucash_rest.py index 3ee4ad83ff..a7a54f2b5d 100644 --- a/bindings/python/example_scripts/rest-api/gnucash_rest.py +++ b/bindings/python/example_scripts/rest-api/gnucash_rest.py @@ -1824,7 +1824,7 @@ def gnc_numeric_from_decimal(decimal_value): numerator_place_value = 1 # add each digit to the final value multiplied by the place value # 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_place_value *= TEN