Skip to content

Commit

Permalink
Old style exceptions --> new style for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and yonghong-song committed Jul 17, 2019
1 parent 3e69639 commit bfdb817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/frontends/p4/compiler/ebpfStructType.py
Expand Up @@ -22,7 +22,7 @@ def __init__(self, hlirParentType, name, widthInBits, attributes, config):
try:
self.type = EbpfScalarType(
self.hlirType, widthInBits, signed, config)
except CompilationException, e:
except CompilationException as e:
raise CompilationException(
e.isBug, "{0}.{1}: {2}", hlirParentType, self.name, e.show())

Expand Down

0 comments on commit bfdb817

Please sign in to comment.