Made Profile() json-dumpable
This commit is contained in:
parent
fa4be63e48
commit
1bd6a19dc4
|
|
@ -61,6 +61,9 @@ class Profile():
|
||||||
self._cache = None
|
self._cache = None
|
||||||
self.args = args
|
self.args = args
|
||||||
|
|
||||||
|
def __dump__(self, *args, **kwargs):
|
||||||
|
return {'path' : self._path}
|
||||||
|
|
||||||
def __repr__(self, *args, **kwargs):
|
def __repr__(self, *args, **kwargs):
|
||||||
return f'Profile({self._path} <"{self.path}">)'
|
return f'Profile({self._path} <"{self.path}">)'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue