aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-04-11 20:51:33 +0200
committerneodarz <neodarz@neodarz.net>2020-04-11 20:51:33 +0200
commite1639c0f20d56d05517a6e16aca768094b5e77ba (patch)
tree4bb284d8f02fba75288721364e5ec68a379b7a88
parent246fb448132fd3ea354d235f701d9c9248a20361 (diff)
downloadpyfunkwhale-e1639c0f20d56d05517a6e16aca768094b5e77ba.tar.xz
pyfunkwhale-e1639c0f20d56d05517a6e16aca768094b5e77ba.zip
Fix typo in variable name
-rw-r--r--pyfunkwhale/utils.py8
1 files 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