# HG changeset patch # User Matt Mackall # Date 1421194502 28800 # Node ID 62f41f251e52ce847c545ca2db9e8ecf4423a9b6 # Parent 0ab23a48b9a7b7622389d8393db3a68e4426d363 unpacker: check the right exception type for 2.4 diff -r 0ab23a48b9a7 -r 62f41f251e52 mercurial/util.py --- a/mercurial/util.py Sat Jan 10 18:00:57 2015 +0800 +++ b/mercurial/util.py Tue Jan 13 16:15:02 2015 -0800 @@ -234,7 +234,7 @@ try: # 2.5+ return struct.Struct(fmt).unpack - except NameError: + except AttributeError: # 2.4 return lambda buf: struct.unpack(fmt)