[pypy-svn] r27201 - pypy/dist/pypy/translator
arigo at codespeak.net
arigo at codespeak.net
Sun May 14 13:31:34 CEST 2006
Author: arigo
Date: Sun May 14 13:31:33 2006
New Revision: 27201
Modified:
pypy/dist/pypy/translator/geninterplevel.py
Log:
Kill unused code.
Modified: pypy/dist/pypy/translator/geninterplevel.py
==============================================================================
--- pypy/dist/pypy/translator/geninterplevel.py (original)
+++ pypy/dist/pypy/translator/geninterplevel.py Sun May 14 13:31:33 2006
@@ -631,17 +631,11 @@
nameof_method = nameof_instancemethod # when run on top of PyPy
def should_translate_attr(self, pbc, attr):
- ann = self.translator.annotator
- if ann is None:
- ignore = getattr(pbc.__class__, 'NOT_RPYTHON_ATTRIBUTES', [])
- if attr in ignore:
- return False
- else:
- return "probably" # True
- classdef = ann.getuserclasses().get(pbc.__class__)
- if classdef and classdef.about_attribute(attr) is not None:
- return True
- return False
+ ignore = getattr(pbc.__class__, 'NOT_RPYTHON_ATTRIBUTES', [])
+ if attr in ignore:
+ return False
+ else:
+ return "probably" # True
def later(self, gen):
self.latercode.append1((gen, self.debugstack))
More information about the Pypy-commit
mailing list