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

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)