Skip to content

Commit c31a65f

Browse files
alanjdswhitequark
authored andcommitted
parser.Parser explicitly inheriting from object
This allows Python2 code to inherit the parser without monkeypatches
1 parent 7b10870 commit c31a65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def rule(parser, begin_loc, node, end_loc):
349349
return node
350350
return rule
351351

352-
class Parser:
352+
class Parser(object):
353353

354354
# Generic LL parsing methods
355355
def __init__(self, lexer, version, diagnostic_engine):

0 commit comments

Comments
 (0)