소스 검색

Fix assertion error syntax.

Jelmer Vernooij 10 년 전
부모
커밋
6057a636fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dulwich/protocol.py

+ 1 - 1
dulwich/protocol.py

@@ -122,7 +122,7 @@ class Protocol(object):
             pkt_contents = read(size-4)
             if len(pkt_contents) + 4 != size:
                 raise AssertionError('Length of pkt read %04x does not match length prefix %04x.'
-                                     .format(len(pkt_contents) + 4, size))
+                                     % (len(pkt_contents) + 4, size))
             return pkt_contents
         except socket.error as e:
             raise GitProtocolError(e)