[pypy-svn] r28092 - pypy/dist/pypy/objspace/std
ale at codespeak.net
ale at codespeak.net
Fri Jun 2 14:18:32 CEST 2006
Author: ale
Date: Fri Jun 2 14:18:31 2006
New Revision: 28092
Modified:
pypy/dist/pypy/objspace/std/complexobject.py
Log:
The str of complex made test_compare fail
Modified: pypy/dist/pypy/objspace/std/complexobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/complexobject.py (original)
+++ pypy/dist/pypy/objspace/std/complexobject.py Fri Jun 2 14:18:31 2006
@@ -271,10 +271,10 @@
def str__Complex(f):
if not f.real:
- return repr(possint(f.imag))+'j'
+ return str(possint(f.imag))+'j'
imag = f.imag
sign = ((imag >= 0) and '+') or ''
- return "'("+repr(possint(f.real)) + sign + repr(possint(f.imag))+"j)'"
+ return '('+str(possint(f.real)) + sign + str(possint(f.imag))+'j)'
""", filename=__file__)
More information about the Pypy-commit
mailing list