projects
/
pyelftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80305ad
)
BaseException.message is deprecated in Python 2.6 and gone in 3
author
Martin Panter
<vadmium>
Thu, 6 Dec 2012 00:00:00 +0000
(
00:00
+0000)
committer
Martin Panter
<vadmium à gmail·com>
Sat, 3 May 2014 07:36:01 +0000
(07:36 +0000)
elftools/common/utils.py
patch
|
blob
|
history
diff --git
a/elftools/common/utils.py
b/elftools/common/utils.py
index e6fc6b65874efe47295546c0f4f9e92eb4c2e689..a2c9edbe356c465fbaaed47d0a4f77b0747ee256 100644
(file)
--- a/
elftools/common/utils.py
+++ b/
elftools/common/utils.py
@@
-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):