summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2019-02-23 11:12:33 -0800
committerGitHub <noreply@github.com>2019-02-23 11:12:33 -0800
commit9e07c6d66d006a2d3607fa8630df6563a8d1357d (patch)
tree735eb0969015a78a16f2f368eb65a3d5fe08ba55
parent961e075aa5c81c23436a62ecca52049b01d6937f (diff)
downloadisort-9e07c6d66d006a2d3607fa8630df6563a8d1357d.tar.gz
Update settings.py
Fix accidental variable override
-rw-r--r--isort/settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isort/settings.py b/isort/settings.py
index 79036773..79f0dbb2 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -166,8 +166,8 @@ def from_path(path):
def _update_settings_with_config(path, name, default, sections, computed_settings):
editor_config_file = None
- for path in default:
- expanded = os.path.expanduser(path)
+ for potential_settings_path in default:
+ expanded = os.path.expanduser(potential_settings_path)
if os.path.exists(expanded):
editor_config_file = expanded
break