[pypy-svn] r20436 - pypy/branch/somepbc-refactoring/pypy/annotation
pedronis at codespeak.net
pedronis at codespeak.net
Wed Nov 30 14:47:01 CET 2005
Author: pedronis
Date: Wed Nov 30 14:47:00 2005
New Revision: 20436
Modified:
pypy/branch/somepbc-refactoring/pypy/annotation/classdef.py
Log:
(mwh, pedronis)
fix method demotion detection logic.
Modified: pypy/branch/somepbc-refactoring/pypy/annotation/classdef.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/annotation/classdef.py (original)
+++ pypy/branch/somepbc-refactoring/pypy/annotation/classdef.py Wed Nov 30 14:47:00 2005
@@ -113,7 +113,7 @@
if isinstance(desc, description.MethodDesc):
meth = True
break
- if meth and homedef.classdesc.find_source_for(attr) is None:
+ if meth and homedef.classdesc.read_attribute(attr, None) is None:
self.bookkeeper.warning("demoting method %s to base class %s" % (self.name, homedef))
for position in self.read_locations:
More information about the Pypy-commit
mailing list