summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2020-10-27 23:49:30 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2020-10-27 23:49:30 -0700
commit21b509797ba72631a506d333e86d8effe4584791 (patch)
treeabf7e96ae43025d29fdf3e1f616fed1b65e4749f
parent669a6c36309ce89581074ab1e3aaa5bf7785aba7 (diff)
downloadisort-issue/1582-dont-follow-links.tar.gz
-rw-r--r--isort/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/isort/main.py b/isort/main.py
index b1274ef3..0aeed699 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -147,7 +147,9 @@ def iter_source_code(
for path in paths:
if os.path.isdir(path):
- for dirpath, dirnames, filenames in os.walk(path, topdown=True, followlinks=config.follow_links):
+ for dirpath, dirnames, filenames in os.walk(
+ path, topdown=True, followlinks=config.follow_links
+ ):
base_path = Path(dirpath)
for dirname in list(dirnames):
full_path = base_path / dirname