Explorar o código

Fix assertion error syntax.

Jelmer Vernooij %!s(int64=10) %!d(string=hai) anos
pai
achega
6057a636fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)