diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2020-10-27 23:49:30 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2020-10-27 23:49:30 -0700 |
commit | 21b509797ba72631a506d333e86d8effe4584791 (patch) | |
tree | abf7e96ae43025d29fdf3e1f616fed1b65e4749f | |
parent | 669a6c36309ce89581074ab1e3aaa5bf7785aba7 (diff) | |
download | isort-issue/1582-dont-follow-links.tar.gz |
-rw-r--r-- | isort/main.py | 4 |
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 |