Skip to content

Commit ce1cddc

Browse files
committed
Prefix non-public api with an underscore
1 parent c7acb7c commit ce1cddc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/toolchains/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,12 @@ def scan_resources(self, path, exclude_paths=None, base_path=None):
440440
resources.base_path = base_path
441441

442442
if isfile(path):
443-
self.add_file(path, resources, base_path, exclude_paths=exclude_paths)
443+
self._add_file(path, resources, base_path, exclude_paths=exclude_paths)
444444
else:
445-
self.add_dir(path, resources, base_path, exclude_paths=exclude_paths)
445+
self._add_dir(path, resources, base_path, exclude_paths=exclude_paths)
446446
return resources
447447

448-
def add_dir(self, path, resources, base_path, exclude_paths=None):
448+
def _add_dir(self, path, resources, base_path, exclude_paths=None):
449449
""" os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]])
450450
When topdown is True, the caller can modify the dirnames list in-place
451451
(perhaps using del or slice assignment), and walk() will only recurse into
@@ -506,9 +506,9 @@ def add_dir(self, path, resources, base_path, exclude_paths=None):
506506

507507
for file in files:
508508
file_path = join(root, file)
509-
self.add_file(file_path, resources, base_path)
509+
self._add_file(file_path, resources, base_path)
510510

511-
def add_file(self, file_path, resources, base_path, exclude_paths=None):
511+
def _add_file(self, file_path, resources, base_path, exclude_paths=None):
512512
resources.file_basepath[file_path] = base_path
513513

514514
if self.is_ignored(file_path):

0 commit comments

Comments
 (0)