Sfoglia il codice sorgente

Add DiskObjectStore.__repr__.

Jelmer Vernooij 11 anni fa
parent
commit
428b36847d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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._alternates = None
 
+    def __repr__(self):
+        return "<%s(%r)>" % (self.__class__.__name__, self.path)
+
     @property
     def alternates(self):
         if self._alternates is not None: