mercurial/util.py
changeset 23864 6c44cef5baa2
parent 23832 62f41f251e52
child 23899 4e451d1359de
--- 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.