[pypy-commit] pypy default: Baaaaah. Don't rely on "is" being true for two independently
arigo
noreply at buildbot.pypy.org
Sat Dec 10 10:41:57 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r50335:b8e86a5f522b
Date: 2011-12-10 10:41 +0100
http://bitbucket.org/pypy/pypy/changeset/b8e86a5f522b/
Log: Baaaaah. Don't rely on "is" being true for two independently
wrapped strings. It fails on py.py, for example.
diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -506,7 +506,7 @@
for w_pathitem in space.unpackiterable(w_path):
# sys.path_hooks import hook
if (w_lib_extensions is not None and
- space.is_w(w_pathitem, w_lib_extensions)):
+ space.eq_w(w_pathitem, w_lib_extensions)):
return delayed_builtin
if use_loader:
w_loader = find_in_path_hooks(space, w_modulename, w_pathitem)
More information about the pypy-commit
mailing list