Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/xmlGenerator/EddParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,12 +877,12 @@ def parse(self, stream, verbose=False):
context.append(myelement)
context[-2].addChild(myelement)

except MySyntaxWarning, ex:
except MySyntaxWarning as ex:
ex.setLine(line, num + 1)
if verbose :
print >>sys.stderr, ex
sys.stderr.write("{}\n".format(ex))

except MySyntaxError, ex :
except MySyntaxErro as ex :
ex.setLine(line, num + 1)
raise

Expand Down
2 changes: 1 addition & 1 deletion tools/xmlGenerator/PFWScriptGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def main ():
try:
myroot.propagate()

except EddParser.MyPropagationError, ex :
except EddParser.MyPropagationError as ex :
printE(ex)
printE("EXIT ON FAILURE")
exit(1)
Expand Down
2 changes: 1 addition & 1 deletion tools/xmlGenerator/domainGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def parseEdd(EDDFiles):

try:
root.propagate()
except EddParser.MyPropagationError, ex :
except EddParser.MyPropagationError as ex :
logging.critical(str(ex))
logging.info("EXIT ON FAILURE")
exit(1)
Expand Down