aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-12-04 15:01:53 -0500
committerOle Tr�an <otroan@employees.org>2021-02-15 10:00:38 +0000
commitb00c49ca67bb9ea6290943eb2208cb9e17eb67e0 (patch)
treeb7e0198b93e68384b518fc01ad36bd514e788471 /src
parentd1f05f7f861fca5e54b30acdd17b6d528d1e5eff (diff)
vppapigen: py2 cleanup - remove subclassing of object
Type: refactor Change-Id: I7136cb8ba101ea3917dacc31ceb3a76a31328301 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/vppapigen/vppapigen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/vppapigen/vppapigen.py b/src/tools/vppapigen/vppapigen.py
index 33510b86fa8..a5d0714777e 100755
--- a/src/tools/vppapigen/vppapigen.py
+++ b/src/tools/vppapigen/vppapigen.py
@@ -44,7 +44,7 @@ def exception_handler(exception_type, exception, traceback):
#
# Lexer
#
-class VPPAPILexer(object):
+class VPPAPILexer:
def __init__(self, filename):
self.filename = filename
@@ -524,7 +524,7 @@ class Paths(Processable):
)
-class Coord(object):
+class Coord:
""" Coordinates of a syntactic element. Consists of:
- File name
- Line number
@@ -551,7 +551,7 @@ class ParseError(Exception):
#
# Grammar rules
#
-class VPPAPIParser(object):
+class VPPAPIParser:
tokens = VPPAPILexer.tokens
def __init__(self, filename, logger, revision=None):