Преглед изворни кода

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():