Commits

Armin Rigo committed f65f68c

Bah, that was not RPython

Comments (0)

Files changed (1)

pypy/interpreter/baseobjspace.py

 
     def new_interned_w_str(self, w_s):
         s = self.str_w(w_s)
-        assert isinstance(s, str)
+        assert type(s) is str
         try:
             return self.interned_strings[s]
         except KeyError:
         return w_s
 
     def new_interned_str(self, s):
-        assert isinstance(s, str)
+        assert type(s) is str
         try:
             return self.interned_strings[s]
         except KeyError: