Commits

Armin Rigo  committed 143f308

Grrrrrrr.

  • Participants
  • Parent commits f65f68c

Comments (0)

Files changed (1)

File pypy/interpreter/baseobjspace.py

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