# HG changeset patch # User Matt Mackall # Date 2015-01-15 00:57:00 # Node ID 6c44cef5baa231dbfa311475f56f60b2dc4a7b4d # Parent 669106fc5bb1de671f59e432bbc59ca4ccc0e5bc unpacker: fix missing arg for py2.4 diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -236,7 +236,7 @@ def unpacker(fmt): 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.