commit | 8586ac15f5fce6cd04699c0848608f778b2f4574 | [log] [tgz] |
---|---|---|
author | Martin Panter <vadmium> | Thu Dec 06 00:00:00 2012 +0000 |
committer | Martin Panter <vadmium à gmail·com> | Sat May 03 07:36:01 2014 +0000 |
tree | e6818810ded48f99e242b78c38fde9f23bc66d0e | |
parent | 80305ad20ebd481dde19fa7ff2d90249269aa588 [diff] [blame] |
BaseException.message is deprecated in Python 2.6 and gone in 3
diff --git a/elftools/common/utils.py b/elftools/common/utils.py index e6fc6b6..a2c9edb 100644 --- a/elftools/common/utils.py +++ b/elftools/common/utils.py
@@ -31,7 +31,7 @@ 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):