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

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):