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
|
@ -27,7 +27,7 @@ def read_bot_fixture_data(bot_name: str, test_name: str) -> Dict[str, Any]:
|
|||
base_path = os.path.realpath(
|
||||
os.path.join(os.path.dirname(os.path.abspath(__file__)), "bots", bot_name, "fixtures")
|
||||
)
|
||||
http_data_path = os.path.join(base_path, "{}.json".format(test_name))
|
||||
http_data_path = os.path.join(base_path, f"{test_name}.json")
|
||||
with open(http_data_path, encoding="utf-8") as f:
|
||||
content = f.read()
|
||||
http_data = json.loads(content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue