[pypy-commit] pypy remove-remaining-smm: Don't special case w_bool.
Manuel Jacob
noreply at buildbot.pypy.org
Mon Feb 24 00:19:07 CET 2014
Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69310:77fb097f2896
Date: 2014-02-23 23:26 +0100
http://bitbucket.org/pypy/pypy/changeset/77fb097f2896/
Log: Don't special case w_bool.
diff --git a/pypy/objspace/std/complexobject.py b/pypy/objspace/std/complexobject.py
--- a/pypy/objspace/std/complexobject.py
+++ b/pypy/objspace/std/complexobject.py
@@ -489,8 +489,6 @@
def to_complex(space, w_obj):
if isinstance(w_obj, W_ComplexObject):
return w_obj
- if space.isinstance_w(w_obj, space.w_bool):
- return W_ComplexObject(w_obj.intval, 0.0)
if space.isinstance_w(w_obj, space.w_int):
return W_ComplexObject(w_obj.intval, 0.0)
if space.isinstance_w(w_obj, space.w_long):
More information about the pypy-commit
mailing list