vppapigen: py2 cleanup - remove subclassing of object 86/30286/4
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Fri, 4 Dec 2020 20:01:53 +0000 (15:01 -0500)
committerOle Tr�an <otroan@employees.org>
Mon, 15 Feb 2021 10:00:38 +0000 (10:00 +0000)
Type: refactor

Change-Id: I7136cb8ba101ea3917dacc31ceb3a76a31328301
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/tools/vppapigen/vppapigen.py

index 33510b8..a5d0714 100755 (executable)
@@ -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):