From 199468489f8ad04df470bdafecc1af70b17f9494 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 20 Jan 2022 10:47:39 -0500 Subject: [PATCH] Rename "parser" to a more specific name: the name parser is used in python and is too generic to attempt a top level import on it --- scripts/idl/BUILD.gn | 4 ++-- scripts/idl/{parser.py => matter_idl_parser.py} | 0 scripts/idl/{test_parsing.py => test_matter_idl_parser.py} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename scripts/idl/{parser.py => matter_idl_parser.py} (100%) rename scripts/idl/{test_parsing.py => test_matter_idl_parser.py} (98%) diff --git a/scripts/idl/BUILD.gn b/scripts/idl/BUILD.gn index 00166c136659e7..8e83489c058ca9 100644 --- a/scripts/idl/BUILD.gn +++ b/scripts/idl/BUILD.gn @@ -28,8 +28,8 @@ pw_python_package("idl") { sources = [ "__init__.py", "matter_idl_types.py", - "parser.py", + "matter_idl_parser.py", ] - tests = [ "test_parsing.py" ] + tests = [ "test_matter_idl_parser.py" ] } diff --git a/scripts/idl/parser.py b/scripts/idl/matter_idl_parser.py similarity index 100% rename from scripts/idl/parser.py rename to scripts/idl/matter_idl_parser.py diff --git a/scripts/idl/test_parsing.py b/scripts/idl/test_matter_idl_parser.py similarity index 98% rename from scripts/idl/test_parsing.py rename to scripts/idl/test_matter_idl_parser.py index 016684b19fcfd7..23e1d691f9d81b 100755 --- a/scripts/idl/test_parsing.py +++ b/scripts/idl/test_matter_idl_parser.py @@ -15,14 +15,14 @@ # limitations under the License. try: - from .parser import CreateParser + from .matter_idl_parser import CreateParser from .matter_idl_types import * except: import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__))) - from parser import CreateParser + from matter_idl_parser import CreateParser from matter_idl_types import * import unittest