1
0
Fork 0

rename listener variable for readability

This commit is contained in:
Kevin Matz 2019-11-17 13:00:37 -05:00
parent 57951e2524
commit 49201ce142
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ for name in config.get('network', 'hogs').split(',').strip('\"'):
print('Error configuring button', b, e)
continue
oscMacro = OscCommentMacroListener(servers)
walker = ParseTreeWalker()
listener = OscCommentMacroListener(servers)
def comment(text):
@ -78,7 +78,7 @@ def comment(text):
parser._listeners.append(SyntaxErrorListener())
try:
tree = parser.prog()
walker.walk(oscMacro, tree)
walker.walk(listener, tree)
except SyntaxError as e:
logger.debug(e) # antlr internal listener prints the error
# # log it to the debug logger anyway