[pypy-commit] pypy default: Grrrrrrr.
arigo
noreply at buildbot.pypy.org
Mon Apr 8 15:27:53 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r63136:143f3089b372
Date: 2013-04-08 13:29 +0000
http://bitbucket.org/pypy/pypy/changeset/143f3089b372/
Log: Grrrrrrr.
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -709,7 +709,8 @@
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:
@@ -718,7 +719,8 @@
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:
More information about the pypy-commit
mailing list