Skip to content

Commit c490500

Browse files
committed
More pythonic variable usage #143
1 parent 43d8e35 commit c490500

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sasctl/pzmm/write_json_files.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,11 +1102,8 @@ def get_code_dependencies(cls, model_path=Path.cwd()):
11021102
list
11031103
List of found package dependencies.
11041104
"""
1105-
file_names = []
1106-
file_names.extend(sorted(Path(model_path).glob("*.py")))
1107-
11081105
import_info = []
1109-
for file in file_names:
1106+
for file in sorted(Path(model_path).glob("*.py")):
11101107
import_info.append(cls.find_imports(file))
11111108
import_info = list(set(flatten(import_info)))
11121109
return import_info

0 commit comments

Comments
 (0)