From bfdb8171e91b0fdd583d42cc3b2788529af8383c Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 4 Jul 2019 21:35:12 +0200 Subject: [PATCH] Old style exceptions --> new style for Python 3 --- src/cc/frontends/p4/compiler/ebpfStructType.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/frontends/p4/compiler/ebpfStructType.py b/src/cc/frontends/p4/compiler/ebpfStructType.py index 8efa2d2c24c2..e279bc61e38d 100644 --- a/src/cc/frontends/p4/compiler/ebpfStructType.py +++ b/src/cc/frontends/p4/compiler/ebpfStructType.py @@ -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())