Use f for file variable rather than file

This commit is contained in:
George Drummond 2019-01-03 12:06:35 -05:00
parent e630a7868f
commit bcb75a29c5
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17

View File

@ -28,9 +28,9 @@ def _translations_file():
if app:
file_name = app.config.get("DEFAULT_TRANSLATIONS_FILE", file_name)
file = open(file_name)
f = open(file_name)
return yaml.safe_load(file)
return yaml.safe_load(f)
def translate(key, variables=None):