Fix SyntaxError: invalid syntax (#1013)

This commit is contained in:
morikuni 2024-08-28 13:29:28 +09:00 committed by GitHub
parent 7d8a279a12
commit 8c2563e64a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,7 @@ class Ctx:
install_script_path = os.path.join(repo_path, 'install.py') install_script_path = os.path.join(repo_path, 'install.py')
if os.path.exists(requirements_path): if os.path.exists(requirements_path):
with (open(requirements_path, 'r', encoding="UTF-8", errors="ignore") as file): with open(requirements_path, 'r', encoding="UTF-8", errors="ignore") as file:
for line in file: for line in file:
package_name = core.remap_pip_package(line.strip()) package_name = core.remap_pip_package(line.strip())
if package_name and not core.is_installed(package_name): if package_name and not core.is_installed(package_name):