unpacker: fix missing arg for py2.4
authorMatt Mackall <mpm@selenic.com>
Wed, 14 Jan 2015 16:57:00 -0800
changeset 23864 6c44cef5baa2
parent 23863 669106fc5bb1
child 23865 81349f4b47f4
unpacker: fix missing arg for py2.4
mercurial/util.py
--- a/mercurial/util.py	Wed Jan 14 01:15:26 2015 +0100
+++ b/mercurial/util.py	Wed Jan 14 16:57:00 2015 -0800
@@ -236,7 +236,7 @@
         return struct.Struct(fmt).unpack
     except AttributeError:
         # 2.4
-        return lambda buf: struct.unpack(fmt)
+        return lambda buf: struct.unpack(fmt, buf)
 
 def popen2(cmd, env=None, newlines=False):
     # Setting bufsize to -1 lets the system decide the buffer size.