Pārlūkot izejas kodu

Add DiskObjectStore.__repr__.

Jelmer Vernooij 11 gadi atpakaļ
vecāks
revīzija
428b36847d
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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: