diff sat/memory/persistent.py @ 3653:d2b17f0f2615

core (memory/persistent): implement `__repr__` (via `__str__`)
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 11:17:04 +0200
parents be6d91572633
children cbb988a6f507
line wrap: on
line diff
--- a/sat/memory/persistent.py	Wed Sep 08 11:16:52 2021 +0200
+++ b/sat/memory/persistent.py	Wed Sep 08 11:17:04 2021 +0200
@@ -186,7 +186,7 @@
         return self.storage.getPrivates(self.namespace, binary=self.binary, profile=self.profile)
 
     def __repr__(self):
-        raise NotImplementedError
+        return self.__str__()
 
     def __str__(self):
         return "LazyPersistentBinaryDict (namespace: {})".format(self.namespace)