From a1d6cd3980901b1904c7ed02c8abe76e5f3e1f7e Mon Sep 17 00:00:00 2001 From: Tom Picton Date: Thu, 24 Oct 2019 16:40:05 -0700 Subject: [PATCH] Fix typo in newround --- src/future/builtins/newround.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/future/builtins/newround.py b/src/future/builtins/newround.py index b0e6a001..394a2c63 100644 --- a/src/future/builtins/newround.py +++ b/src/future/builtins/newround.py @@ -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: