BaseException.message is deprecated in Python 2.6 and gone in 3
authorMartin Panter <vadmium>
Thu, 6 Dec 2012 00:00:00 +0000 (00:00 +0000)
committerMartin Panter <vadmium à gmail·com>
Sat, 3 May 2014 07:36:01 +0000 (07:36 +0000)
elftools/common/utils.py

index e6fc6b65874efe47295546c0f4f9e92eb4c2e689..a2c9edbe356c465fbaaed47d0a4f77b0747ee256 100644 (file)
@@ -31,7 +31,7 @@ def struct_parse(struct, stream, stream_pos=None):
             stream.seek(stream_pos)
         return struct.parse_stream(stream)
     except ConstructError as e:
-        raise ELFParseError(e.message)
+        raise ELFParseError(str(e))
 
 
 def parse_cstring_from_stream(stream, stream_pos=None):