summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-03 08:55:39 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-09-03 08:55:39 (GMT)
commit3b09cd64e0a7991bcb6d3f83a0a23be2fc81213f (patch)
treec6111132a4ec6fe8f29abd76e882c58442a3d57c /Python
parent25d94bbf05f37151e7e6e3a2e1cd5af4a3e5f68c (diff)
parentf0f1c239e4addd15180d605306a969a627cb19d5 (diff)
downloadcpython-3b09cd64e0a7991bcb6d3f83a0a23be2fc81213f.zip
cpython-3b09cd64e0a7991bcb6d3f83a0a23be2fc81213f.tar.gz
cpython-3b09cd64e0a7991bcb6d3f83a0a23be2fc81213f.tar.bz2
Merge
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index a1cd978..dc2daa8 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2043,7 +2043,7 @@ builtin_round(PyObject *self, PyObject *args, PyObject *kwds)
return NULL;
}
- if (ndigits == NULL)
+ if (ndigits == NULL || ndigits == Py_None)
result = PyObject_CallFunctionObjArgs(round, NULL);
else
result = PyObject_CallFunctionObjArgs(round, ndigits, NULL);