Procházet zdrojové kódy

Fix assertion error syntax.

Jelmer Vernooij před 10 roky
rodič
revize
6057a636fe
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)