mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-18 00:44:13 +08:00
Make get_repr static in access.
This commit is contained in:
@@ -256,6 +256,13 @@ class AccessHandle(object):
|
||||
def add_subprocess(self, subprocess):
|
||||
self._subprocess = subprocess
|
||||
|
||||
def __repr__(self):
|
||||
try:
|
||||
detail = self.access
|
||||
except AttributeError:
|
||||
detail = '#' + str(self.id)
|
||||
return '<%s of %s>' % (self.__class__.__name__, detail)
|
||||
|
||||
def __getstate__(self):
|
||||
return self.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user