diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2019-02-23 11:12:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-23 11:12:33 -0800 |
commit | 9e07c6d66d006a2d3607fa8630df6563a8d1357d (patch) | |
tree | 735eb0969015a78a16f2f368eb65a3d5fe08ba55 | |
parent | 961e075aa5c81c23436a62ecca52049b01d6937f (diff) | |
download | isort-9e07c6d66d006a2d3607fa8630df6563a8d1357d.tar.gz |
Update settings.py
Fix accidental variable override
-rw-r--r-- | isort/settings.py | 4 |
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 |