From ce1cddcd8ba462e79ef05097d9ba2b41f2bc62fd Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Wed, 29 Jun 2016 11:11:54 -0500 Subject: [PATCH] Prefix non-public api with an underscore --- tools/toolchains/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index 9f8bad42e8..ffa4423f15 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -440,12 +440,12 @@ class mbedToolchain: resources.base_path = base_path if isfile(path): - self.add_file(path, resources, base_path, exclude_paths=exclude_paths) + self._add_file(path, resources, base_path, exclude_paths=exclude_paths) else: - self.add_dir(path, resources, base_path, exclude_paths=exclude_paths) + self._add_dir(path, resources, base_path, exclude_paths=exclude_paths) return resources - def add_dir(self, path, resources, base_path, exclude_paths=None): + def _add_dir(self, path, resources, base_path, exclude_paths=None): """ os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]]) When topdown is True, the caller can modify the dirnames list in-place (perhaps using del or slice assignment), and walk() will only recurse into @@ -506,9 +506,9 @@ class mbedToolchain: for file in files: file_path = join(root, file) - self.add_file(file_path, resources, base_path) + self._add_file(file_path, resources, base_path) - def add_file(self, file_path, resources, base_path, exclude_paths=None): + def _add_file(self, file_path, resources, base_path, exclude_paths=None): resources.file_basepath[file_path] = base_path if self.is_ignored(file_path):