Explorar o código

Add DiskObjectStore.__repr__.

Jelmer Vernooij %!s(int64=11) %!d(string=hai) anos
pai
achega
428b36847d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      dulwich/object_store.py

+ 3 - 0
dulwich/object_store.py

@@ -412,6 +412,9 @@ class DiskObjectStore(PackBasedObjectStore):
         self._pack_cache_time = 0
         self._pack_cache_time = 0
         self._alternates = None
         self._alternates = None
 
 
+    def __repr__(self):
+        return "<%s(%r)>" % (self.__class__.__name__, self.path)
+
     @property
     @property
     def alternates(self):
     def alternates(self):
         if self._alternates is not None:
         if self._alternates is not None: