Changed ParseException message argument
The 'message' attribute seems to be not usable since python 3.0 (see PEP #352) but 'msg' is a valid attribute for pyparsing.ParseException.
This commit is contained in:
parent
5c783e60e1
commit
177c3d0f5a
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ class SectionsInfo(dict):
|
||||||
try:
|
try:
|
||||||
results = parser.parseString(first_line)
|
results = parser.parseString(first_line)
|
||||||
except ParseException as p:
|
except ParseException as p:
|
||||||
raise ParseException("Parsing sections info for library " + sections_info_dump.name + " failed. " + p.message)
|
raise ParseException("Parsing sections info for library " + sections_info_dump.name + " failed. " + p.msg)
|
||||||
|
|
||||||
archive = os.path.basename(results.archive_path)
|
archive = os.path.basename(results.archive_path)
|
||||||
self.sections[archive] = SectionsInfo.__info(sections_info_dump.name, sections_info_dump.read())
|
self.sections[archive] = SectionsInfo.__info(sections_info_dump.name, sections_info_dump.read())
|
||||||
|
|
Loading…
Reference in a new issue