From acbd58267841f6e4cc0272e687d97736b9bdc8aa Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Sun, 24 Mar 2019 12:24:19 +0100 Subject: [PATCH] Clean up namespace of generated Python3 listeners Added `del ` to the end of the `ListenerFile` template the same way it is used in `VisitorFile`. --- .../org/antlr/v4/tool/templates/codegen/Python3/Python3.stg | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Python3/Python3.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Python3/Python3.stg index 650d0002e..ecd6af0f5 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Python3/Python3.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Python3/Python3.stg @@ -82,6 +82,7 @@ def exit(self, ctx:.C }; separator="\n"> +del >>