From e1639c0f20d56d05517a6e16aca768094b5e77ba Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Apr 2020 20:51:33 +0200 Subject: Fix typo in variable name --- pyfunkwhale/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfunkwhale/utils.py b/pyfunkwhale/utils.py index fefb7fd..eb6da03 100644 --- a/pyfunkwhale/utils.py +++ b/pyfunkwhale/utils.py @@ -19,7 +19,7 @@ def read_file(filename): return data -def write_file(filename, data): +def write_file(filename, datas): """ Simple wrapper for write data in file @@ -27,10 +27,10 @@ def write_file(filename, data): ---------- filename : str The filename where write the datas - data : str + datas : str The datas to write in the filename """ with open(filename, 'w') as file: - file.write(json.dumps(data)) + file.write(json.dumps(datas)) - return data + return datas -- cgit v1.2.1