Made Profile() json-dumpable

This commit is contained in:
Anton Hvornum 2020-10-18 20:27:40 +02:00
parent fa4be63e48
commit 1bd6a19dc4
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ class Profile():
self._cache = None
self.args = args
def __dump__(self, *args, **kwargs):
return {'path' : self._path}
def __repr__(self, *args, **kwargs):
return f'Profile({self._path} <"{self.path}">)'