Explorar o código

Add HttpGitClient.__repr__.

Jelmer Vernooij %!s(int64=10) %!d(string=hai) anos
pai
achega
111a0431bb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      dulwich/client.py

+ 3 - 0
dulwich/client.py

@@ -979,6 +979,9 @@ class HttpGitClient(GitClient):
             self.opener = opener
         GitClient.__init__(self, *args, **kwargs)
 
+    def __repr__(self):
+        return "%s(%r, dumb=%r)" % (type(self).__name__, self.base_url, self.dumb)
+
     def _get_url(self, path):
         return urlparse.urljoin(self.base_url, path).rstrip("/") + "/"