X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Ftools%2Fvppapigen%2Fvppapigen.py;fp=src%2Ftools%2Fvppapigen%2Fvppapigen.py;h=a5d0714777e2d82eebf898ea80de80223e9684ae;hb=b00c49ca67bb9ea6290943eb2208cb9e17eb67e0;hp=33510b86fa805bd6630434394fe1d6129932f206;hpb=d1f05f7f861fca5e54b30acdd17b6d528d1e5eff;p=vpp.git 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):