[pypy-svn] r48299 - pypy/dist/pypy/rpython
fijal at codespeak.net
fijal at codespeak.net
Sun Nov 4 19:39:38 CET 2007
Author: fijal
Date: Sun Nov 4 19:39:37 2007
New Revision: 48299
Modified:
pypy/dist/pypy/rpython/rpbc.py
Log:
check for attribute existance, rather than value
Modified: pypy/dist/pypy/rpython/rpbc.py
==============================================================================
--- pypy/dist/pypy/rpython/rpbc.py (original)
+++ pypy/dist/pypy/rpython/rpbc.py Sun Nov 4 19:39:37 2007
@@ -485,7 +485,7 @@
except KeyError:
# don't issue warning if this attribute can be read, but
# is not used
- if not getattr(frozendesc.pyobj, attr, None):
+ if not hasattr(frozendesc.pyobj, attr):
warning("Desc %r has no attribute %r" % (frozendesc, attr))
continue
llvalue = r_value.convert_const(thisattrvalue)
More information about the Pypy-commit
mailing list