Author: Daniel Patrick <>
Branch: py3.5
Changeset: r87242:3c6fe0885f72
Date: 2016-09-19 17:20 +0100

Log:    Replace checks for None and space.w_None with space.is_none

diff --git a/pypy/module/__builtin__/ 
--- a/pypy/module/__builtin__/
+++ b/pypy/module/__builtin__/
@@ -106,7 +106,7 @@
     if round is None:
         raise oefmt(space.w_TypeError,
                     "type %T doesn't define __round__ method", w_number)
-    if w_ndigits is None or w_ndigits is space.w_None:
+    if space.is_none(w_ndigits):
         return space.get_and_call_function(round, w_number)
         return space.get_and_call_function(round, w_number, w_ndigits)
pypy-commit mailing list

Reply via email to