1. Pypy
  2. Untitled project
  3. pypy

Source

pypy / pypy / module / __builtin__ / operation.py

Diff from to

File pypy/module/__builtin__/operation.py

 
 # ____________________________________________________________
 
-@unwrap_spec(w_ndigits=WrappedDefault(None))
 def round(space, w_number, w_ndigits=None):
     """round(number[, ndigits]) -> number
 
         raise operationerrfmt(space.w_TypeError,
                               "type %s doesn't define __round__ method",
                               space.type(w_number).getname(space))
-    if space.is_none(w_ndigits):
+    if w_ndigits is None:
         return space.get_and_call_function(round, w_number)
     else:
         return space.get_and_call_function(round, w_number, w_ndigits)