소스 검색

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