Format code base with black
https://black.readthedocs.io/en/stable/ JIRA: COMPOSE-4086 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
38142d30ba
commit
41a629969c
84 changed files with 5748 additions and 3325 deletions
|
|
@ -42,9 +42,12 @@ def write_discinfo(file_path, description, arch, disc_numbers=None, timestamp=No
|
|||
"""
|
||||
disc_numbers = disc_numbers or ["ALL"]
|
||||
if not isinstance(disc_numbers, list):
|
||||
raise TypeError("Invalid type: disc_numbers type is %s; expected: <list>" % type(disc_numbers))
|
||||
raise TypeError(
|
||||
"Invalid type: disc_numbers type is %s; expected: <list>"
|
||||
% type(disc_numbers)
|
||||
)
|
||||
if not timestamp:
|
||||
timestamp = os.environ.get('SOURCE_DATE_EPOCH', "%f" % time.time())
|
||||
timestamp = os.environ.get("SOURCE_DATE_EPOCH", "%f" % time.time())
|
||||
with open(file_path, "w") as f:
|
||||
f.write("%s\n" % timestamp)
|
||||
f.write("%s\n" % description)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue