mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +08:00
Add a repr for Project
Also remove setstate from it, since we intend to serialize it with json.
This commit is contained in:
+2
-2
@@ -110,8 +110,8 @@ class Project(object):
|
|||||||
|
|
||||||
return self._environment
|
return self._environment
|
||||||
|
|
||||||
def __setstate__(self, state):
|
def __repr__(self):
|
||||||
self.__dict__.update(state)
|
return '<%s: %s>' % (self.__class__.__name__, self._path)
|
||||||
|
|
||||||
|
|
||||||
def _is_potential_project(path):
|
def _is_potential_project(path):
|
||||||
|
|||||||
Reference in New Issue
Block a user