diff options
author | Karan Suthar <karansthr97@gmail.com> | 2020-04-13 20:41:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 20:41:39 +0300 |
commit | 8e4dc0a48c6108311cf68ca1c683d29b15d49c97 (patch) | |
tree | bd765e6d3f4f1535b020dea3da29d723ad6791d3 /windows-installer | |
parent | 316e4640f86c7f48a48d194a77e9462d1f50bd34 (diff) |
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>
Diffstat (limited to 'windows-installer')
-rw-r--r-- | windows-installer/construct.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/windows-installer/construct.py b/windows-installer/construct.py index f0724f5f4..4b05c926a 100644 --- a/windows-installer/construct.py +++ b/windows-installer/construct.py @@ -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.' |