util: drop the compatibility with Python 2.4 unpacker
Python 2.4 compatibility have packed and sailed.
--- a/mercurial/util.py Mon May 18 16:52:28 2015 -0500
+++ b/mercurial/util.py Mon May 18 16:54:21 2015 -0500
@@ -234,12 +234,7 @@
def unpacker(fmt):
"""create a struct unpacker for the specified format"""
- try:
- # 2.5+
- return struct.Struct(fmt).unpack
- except AttributeError:
- # 2.4
- return lambda buf: struct.unpack(fmt, buf)
+ return struct.Struct(fmt).unpack
def popen2(cmd, env=None, newlines=False):
# Setting bufsize to -1 lets the system decide the buffer size.