removed unncessary error message

This commit is contained in:
David Halter
2012-06-10 21:15:39 +02:00
parent 2574b27496
commit dfa6bdd782

View File

@@ -15,7 +15,6 @@ TODO nonlocal statement
TODO getattr / __getattr__ / __getattribute__ ?
TODO descriptors
TODO __call__
"""
from _compatibility import next, property
@@ -213,6 +212,9 @@ class Class(object):
return self.base.name
def __getattr__(self, name):
if name not in ['line_nr', 'indent', 'parent', 'subscopes',
'get_imports']:
raise AttributeError("Don't touch this (%s)!" % name)
return getattr(self.base, name)
def __repr__(self):