mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-18 11:35:57 +08:00
removed unncessary error message
This commit is contained in:
@@ -15,7 +15,6 @@ TODO nonlocal statement
|
|||||||
|
|
||||||
TODO getattr / __getattr__ / __getattribute__ ?
|
TODO getattr / __getattr__ / __getattribute__ ?
|
||||||
TODO descriptors
|
TODO descriptors
|
||||||
TODO __call__
|
|
||||||
"""
|
"""
|
||||||
from _compatibility import next, property
|
from _compatibility import next, property
|
||||||
|
|
||||||
@@ -213,6 +212,9 @@ class Class(object):
|
|||||||
return self.base.name
|
return self.base.name
|
||||||
|
|
||||||
def __getattr__(self, 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)
|
return getattr(self.base, name)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user