diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-20 08:08:46 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-20 08:08:46 +0300 |
commit | df3316cbe98e19def7284c028e53682db0be9a30 (patch) | |
tree | 54fff92a80bfd635ca439c2e4f258843c5cf27cb /build_files/utils/make_source_archive.py | |
parent | 972a697f822b65cc1887c305dd62e54d5b19d3e3 (diff) |
Cleanup: run autopep8 on build_files/
Replace multiple hashes with over-lines for make_source_archive.py.
Diffstat (limited to 'build_files/utils/make_source_archive.py')
-rwxr-xr-x | build_files/utils/make_source_archive.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/build_files/utils/make_source_archive.py b/build_files/utils/make_source_archive.py index e06be9d5ba7..befd6d84534 100755 --- a/build_files/utils/make_source_archive.py +++ b/build_files/utils/make_source_archive.py @@ -143,8 +143,8 @@ def packages_path(current_directory: Path, cli_args: Any) -> Optional[Path]: return Path(relpath) - -### Manifest creation +# ----------------------------------------------------------------------------- +# Manifest creation def create_manifest( @@ -195,7 +195,8 @@ def packages_to_manifest(outfile: TextIO, packages_dir: Path) -> None: print(path, file=outfile) -### Higher-level functions +# ----------------------------------------------------------------------------- +# Higher-level functions def create_tarball( @@ -249,7 +250,8 @@ def cleanup(manifest: Path) -> None: print("OK") -## Low-level commands +# ----------------------------------------------------------------------------- +# Low-level commands def git_ls_files(directory: Path = Path(".")) -> Iterable[Path]: @@ -265,7 +267,7 @@ def git_ls_files(directory: Path = Path(".")) -> Iterable[Path]: yield path -def git_command(*cli_args: Union[bytes, str, Path] ) -> Iterable[str]: +def git_command(*cli_args: Union[bytes, str, Path]) -> Iterable[str]: """Generator, yields lines of output from a Git command.""" command = ("git", *cli_args) |