Sfoglia il codice sorgente

Add git.repo.Repo.__repr__.

Jelmer Vernooij 16 anni fa
parent
commit
539ff6a9b9
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      dulwich/repo.py

+ 3 - 0
dulwich/repo.py

@@ -219,6 +219,9 @@ class Repo(object):
     history.reverse()
     return history
 
+  def __repr__(self):
+      return "<Repo at %r>" % self.path
+
   @classmethod
   def init_bare(cls, path, mkdir=True):
       for d in [["objects"],