Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r55137:2f86e5696fbf
Date: 2012-05-18 23:25 +0200
http://bitbucket.org/pypy/pypy/changeset/2f86e5696fbf/

Log:    Fix test_rstr, and probably translation as well

diff --git a/pypy/annotation/unaryop.py b/pypy/annotation/unaryop.py
--- a/pypy/annotation/unaryop.py
+++ b/pypy/annotation/unaryop.py
@@ -105,7 +105,7 @@
 
     def str(obj):
         getbookkeeper().count('str', obj)
-        if isinstance(obj, SomeString):
+        if type(obj) is SomeString:
             return obj
         if isinstance(obj, (SomeInteger, SomeFloat)):
             return SomeString(no_nul=True)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to