[pypy-commit] pypy kill-someobject: too bad, it works if we pass None (and people rely on it)
fijal
noreply at buildbot.pypy.org
Wed Oct 10 22:50:51 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: kill-someobject
Changeset: r57992:84caf75df304
Date: 2012-10-10 22:50 +0200
http://bitbucket.org/pypy/pypy/changeset/84caf75df304/
Log: too bad, it works if we pass None (and people rely on it)
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -720,7 +720,6 @@
# expected programming style where we say "if x is None" or
# "if x is object").
assert w_two is not None
- assert w_one is not None
return w_two.is_w(self, w_one)
def is_none(self, w_obj):
More information about the pypy-commit
mailing list