formatted few long lines of code to be 80 characters max.

This commit is contained in:
i-to-z 2023-11-17 17:19:07 -08:00
parent ed245b295a
commit 27e27b853c
1 changed files with 6 additions and 3 deletions

View File

@ -940,8 +940,10 @@ def download_to_iso():
local_file = request.form.get("file")
if iso_type == "HFS":
# The file was downloaded into this location during installation, see fetchGenisoimageHfsResourceForkMapFile() in easyinstall.sh
genisoimage_hfs_resource_fork_map_file_path = Path(f"{WEB_DIR}/../../../genisoimage_hfs_resource_fork_map/genisoimage_hfs_resource_fork_map.txt")
# The file was downloaded into this location during installation,
# see fetchGenisoimageHfsResourceForkMapFile() in easyinstall.sh
genisoimage_hfs_resource_fork_map_file_path = Path(
f"{WEB_DIR}/../../../genisoimage_hfs_resource_fork_map/genisoimage_hfs_resource_fork_map.txt")
if genisoimage_hfs_resource_fork_map_file_path.exists():
# genisoimage will look up the file extension in the map file to derive the file's CREATOR and TYPE
# resource fork attributes, see more at https://linux.die.net/man/1/genisoimage
@ -951,7 +953,8 @@ def download_to_iso():
str(genisoimage_hfs_resource_fork_map_file_path))
else:
logging.warning(
"Genisoimage hfs map file %s is not present at %s. Will not set resource fork attributes of files in the iso image!",
"Genisoimage hfs map file %s is not present at %s. "
"Will not set resource fork attributes of files in the iso image!",
str(genisoimage_hfs_resource_fork_map_file_path),
)
iso_args = ["-hfs"]