Skip to content

Commit

Permalink
Merge pull request #521 from tpict/fix-round-again
Browse files Browse the repository at this point in the history
Fix typo in newround
  • Loading branch information
jmadler authored Oct 31, 2019
2 parents 228a297 + a1d6cd3 commit a3e3008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/future/builtins/newround.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def newround(number, ndigits=None):
if 'numpy' in repr(type(number)):
number = float(number)

if isinstance(d, Decimal):
if isinstance(number, Decimal):
d = number
else:
if not PY26:
Expand Down

0 comments on commit a3e3008

Please sign in to comment.