Forráskód Böngészése

Add git.repo.Repo.__repr__.

Jelmer Vernooij 16 éve
szülő
commit
539ff6a9b9
1 módosított fájl, 3 hozzáadás és 0 törlés
  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"],