Browse Source

Add DiskObjectStore.__repr__.

Jelmer Vernooij 11 năm trước cách đây
mục cha
commit
428b36847d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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: