Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppapigen: py2 cleanup - remove subclassing of object
[vpp.git]
/
src
/
tools
/
vppapigen
/
vppapigen.py
diff --git
a/src/tools/vppapigen/vppapigen.py
b/src/tools/vppapigen/vppapigen.py
index
33510b8
..
a5d0714
100755
(executable)
--- a/
src/tools/vppapigen/vppapigen.py
+++ b/
src/tools/vppapigen/vppapigen.py
@@
-44,7
+44,7
@@
def exception_handler(exception_type, exception, traceback):
#
# Lexer
#
#
# Lexer
#
-class VPPAPILexer
(object)
:
+class VPPAPILexer:
def __init__(self, filename):
self.filename = filename
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
""" Coordinates of a syntactic element. Consists of:
- File name
- Line number
@@
-551,7
+551,7
@@
class ParseError(Exception):
#
# Grammar rules
#
#
# Grammar rules
#
-class VPPAPIParser
(object)
:
+class VPPAPIParser:
tokens = VPPAPILexer.tokens
def __init__(self, filename, logger, revision=None):
tokens = VPPAPILexer.tokens
def __init__(self, filename, logger, revision=None):