mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Don't use getattr, use the abstractions
This commit is contained in:
@@ -310,12 +310,8 @@ class DirectObjectAccess(object):
|
|||||||
return u'instance'
|
return u'instance'
|
||||||
|
|
||||||
def get_access_path_tuples(self):
|
def get_access_path_tuples(self):
|
||||||
return [
|
accesses = [create_access(self._evaluator, o) for o in self._get_objects_path()]
|
||||||
(
|
return [(access.py__name__(), access) for access in accesses]
|
||||||
u(getattr(o, '__name__', None), errors='replace'),
|
|
||||||
create_access(self._evaluator, o)
|
|
||||||
) for o in self._get_objects_path()
|
|
||||||
]
|
|
||||||
|
|
||||||
def _get_objects_path(self):
|
def _get_objects_path(self):
|
||||||
def get():
|
def get():
|
||||||
|
|||||||
Reference in New Issue
Block a user