1
0
forked from VimPlug/jedi

Make get_repr static in access.

This commit is contained in:
Dave Halter
2017-12-13 19:16:29 +01:00
parent 0acb7dcb18
commit e03afc60ef
3 changed files with 21 additions and 4 deletions

View File

@@ -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