spack_yaml: use unambiguous variable name (#48832)
This commit is contained in:
parent
763b35a2e0
commit
742eaa32b7
@ -436,8 +436,8 @@ def _dump_annotated(handler, data, stream=None):
|
|||||||
width = max(clen(a) for a in _ANNOTATIONS)
|
width = max(clen(a) for a in _ANNOTATIONS)
|
||||||
formats = ["%%-%ds %%s\n" % (width + cextra(a)) for a in _ANNOTATIONS]
|
formats = ["%%-%ds %%s\n" % (width + cextra(a)) for a in _ANNOTATIONS]
|
||||||
|
|
||||||
for f, a, l in zip(formats, _ANNOTATIONS, lines):
|
for fmt, annotation, line in zip(formats, _ANNOTATIONS, lines):
|
||||||
stream.write(f % (a, l))
|
stream.write(fmt % (annotation, line))
|
||||||
|
|
||||||
if getvalue:
|
if getvalue:
|
||||||
return getvalue()
|
return getvalue()
|
||||||
|
Loading…
Reference in New Issue
Block a user