瀏覽代碼

Add HttpGitClient.__repr__.

Jelmer Vernooij 10 年之前
父節點
當前提交
111a0431bb
共有 1 個文件被更改,包括 3 次插入0 次删除
  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("/") + "/"