pyupgrade: Reformat with --py36-plus.
This includes mainly fixes of string literals using f-strings or .format(...), as well as unpacking of list comprehensions.
This commit is contained in:
parent
e27ac0ddbe
commit
9ce7c52a10
78 changed files with 356 additions and 389 deletions
|
@ -41,7 +41,7 @@ the Python version this command is executed with."""
|
|||
# The output has the format "Python 1.2.3"
|
||||
py_version_list = py_version_output.split()[1].split(".")
|
||||
py_version = tuple(int(num) for num in py_version_list[0:2])
|
||||
venv_name = "zulip-api-py{}-venv".format(py_version[0])
|
||||
venv_name = f"zulip-api-py{py_version[0]}-venv"
|
||||
|
||||
if py_version <= (3, 1) and (not options.force):
|
||||
print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue