Skip to content

Commit a2041f7

Browse files
authored
use a different name for loop variable
1 parent 861665d commit a2041f7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

traitlets/config/application.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,12 +830,12 @@ def _load_config_files(cls, basefilename, path=None, log=None, raise_config_file
830830

831831
if not isinstance(path, list):
832832
path = [path]
833-
for path in reversed(path):
833+
for current in reversed(path):
834834
# path list is in descending priority order, so load files backwards:
835-
pyloader = cls.python_config_loader_class(basefilename + ".py", path=path, log=log)
835+
pyloader = cls.python_config_loader_class(basefilename + ".py", path=current, log=log)
836836
if log:
837-
log.debug("Looking for %s in %s", basefilename, path or os.getcwd())
838-
jsonloader = cls.json_config_loader_class(basefilename + ".json", path=path, log=log)
837+
log.debug("Looking for %s in %s", basefilename, current or os.getcwd())
838+
jsonloader = cls.json_config_loader_class(basefilename + ".json", path=current, log=log)
839839
loaded: t.List[t.Any] = []
840840
filenames: t.List[str] = []
841841
for loader in [pyloader, jsonloader]:

0 commit comments

Comments
 (0)