ソースを参照

Merge pull request #1173 from jelmer/version-tuple

Handle version tuples that are not three integers
Jelmer Vernooij 1 年間 前
コミット
220f510c8e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      dulwich/protocol.py

+ 1 - 1
dulwich/protocol.py

@@ -108,7 +108,7 @@ NAK_LINE = b"NAK\n"
 
 
 def agent_string():
-    return ("dulwich/%d.%d.%d" % dulwich.__version__).encode("ascii")
+    return ("dulwich/" + ".".join(map(str, dulwich.__version__))).encode("ascii")
 
 
 def capability_agent():