From b87ca6da27fb8a5d8a48966b65c75edf30e992a2 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sat, 30 Jul 2022 15:25:17 -0700 Subject: black: do not align `sha56`'s with spaces in `spack checksum` output --- lib/spack/spack/stage.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index ddd5bba8b8..a5a8f4458b 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -957,17 +957,9 @@ def get_checksums_for_versions(url_dict, name, **kwargs): if not version_hashes: tty.die("Could not fetch any versions for {0}".format(name)) - # Find length of longest string in the list for padding - max_len = max(len(str(v)) for v, h in version_hashes) - # Generate the version directives to put in a package.py version_lines = "\n".join( - [ - " version('{0}', {1}sha256='{2}'{3})".format( - v, " " * (max_len - len(str(v))), h, expand_arg - ) - for v, h in version_hashes - ] + [" version('{0}', sha256='{1}'{2})".format(v, h, expand_arg) for v, h in version_hashes] ) num_hash = len(version_hashes) -- cgit v1.2.3-70-g09d2