Skip to content

Commit 71f7b82

Browse files
committed
python.tlt still remains Python2 compatible
...as it is used in a legacy project.
1 parent 76abac2 commit 71f7b82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

targets/python.tlt

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
#
8787
@@prologue
8888

89-
class @@prefixNode:
89+
class @@prefixNode(object):
9090
"""
9191
This is an AST node.
9292

@@ -135,7 +135,7 @@ class @@prefixParseException(Exception):
135135
self.expecting = expecting
136136

137137

138-
class _@@prefixToken:
138+
class _@@prefixToken(object):
139139
"""
140140
Only used internally;
141141
Represents a token on the stack.
@@ -147,7 +147,7 @@ class _@@prefixToken:
147147
@@value-type-definition
148148

149149

150-
class _@@prefixControlBlock:
150+
class _@@prefixControlBlock(object):
151151
"""
152152
Only used internally;
153153
Represents the current parser state, and allows to
@@ -191,7 +191,7 @@ class _@@prefixControlBlock:
191191
self.column = 1
192192
@@pcb
193193

194-
class @@prefixParser:
194+
class @@prefixParser(object):
195195
"""
196196
Implements a LALR-Parser for @@name.
197197
Call @@prefixParser.parse() to start parsing a given string.

0 commit comments

Comments
 (0)