##// END OF EJS Templates
unpacker: check the right exception type for 2.4
Matt Mackall -
r23832:62f41f25 default
parent child Browse files
Show More
@@ -234,7 +234,7 b' def unpacker(fmt):'
234 234 try:
235 235 # 2.5+
236 236 return struct.Struct(fmt).unpack
237 except NameError:
237 except AttributeError:
238 238 # 2.4
239 239 return lambda buf: struct.unpack(fmt)
240 240
General Comments 0
You need to be logged in to leave comments. Login now