pyupgrade fixes

This commit is contained in:
Erik Sundell
2021-10-31 11:26:40 +01:00
parent b0375627e3
commit c2c4d708f5
9 changed files with 12 additions and 12 deletions

View File

@@ -121,7 +121,7 @@ def load_traefik_api_credentials():
proxy_secret_path = os.path.join(STATE_DIR, 'traefik-api.secret')
if not os.path.exists(proxy_secret_path):
return {}
with open(proxy_secret_path, 'r') as f:
with open(proxy_secret_path) as f:
password = f.read()
return {
'traefik_api': {