pyupgrade --py37-plus **/*.py (#1654)

* pyupgrade --py37-plus **/*.py

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss
2020-01-03 15:25:36 +01:00
committed by John Law
parent 34c808b375
commit 28419cf839
77 changed files with 71 additions and 128 deletions

View File

@ -9,9 +9,9 @@ def n31(a: int) -> Tuple[List[int], int]:
"""
if not isinstance(a, int):
raise TypeError("Must be int, not {0}".format(type(a).__name__))
raise TypeError("Must be int, not {}".format(type(a).__name__))
if a < 1:
raise ValueError("Given integer must be greater than 1, not {0}".format(a))
raise ValueError(f"Given integer must be greater than 1, not {a}")
path = [a]
while a != 1: