mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Minor bugfixes (#7891)
* Fix dangerous default argument * Remove unused imports * Remove unnecessary comprehension * Use literal syntax to create data structure * Use literal syntax instead of function calls to create data structure Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent
316e4640f8
commit
8e4dc0a48c
@@ -153,7 +153,7 @@ extra_preamble=pywin32_paths.py
|
||||
'''.format(certbot_version=certbot_version,
|
||||
installer_suffix='win_amd64' if PYTHON_BITNESS == 64 else 'win32',
|
||||
python_bitness=PYTHON_BITNESS,
|
||||
python_version='.'.join([str(item) for item in PYTHON_VERSION])))
|
||||
python_version='.'.join(str(item) for item in PYTHON_VERSION)))
|
||||
|
||||
return installer_cfg_path
|
||||
|
||||
@@ -184,7 +184,7 @@ if __name__ == '__main__':
|
||||
|
||||
if sys.version_info[:2] != PYTHON_VERSION[:2]:
|
||||
raise RuntimeError('This script must be run with Python {0}'
|
||||
.format('.'.join([str(item) for item in PYTHON_VERSION[0:2]])))
|
||||
.format('.'.join(str(item) for item in PYTHON_VERSION[0:2])))
|
||||
|
||||
if struct.calcsize('P') * 8 != PYTHON_BITNESS:
|
||||
raise RuntimeError('This script must be run with a {0} bit version of Python.'
|
||||
|
||||
Reference in New Issue
Block a user