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):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to