aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/mutual_friends.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mutual_friends.py b/bin/mutual_friends.py
index 07e1d95..c0d8ffc 100644
--- a/bin/mutual_friends.py
+++ b/bin/mutual_friends.py
@@ -41,18 +41,18 @@ class OutputWriterCSV:
class OutputWriterJSON:
def __init__(self, fd=sys.stdout):
self._fd = fd
- self._array = []
+ self._arr = []
def __enter__(self):
return self
def __exit__(self, *args):
- self._fd.write(json.dumps(self._array, indent=3, ensure_ascii=False))
+ self._fd.write(json.dumps(self._arr, indent=3, ensure_ascii=False))
self._fd.write('\n')
def write_mutual_friends(self, friend_list):
for user in friend_list:
- self._array.append(_filter_user_fields(user))
+ self._arr.append(_filter_user_fields(user))
class OutputFormat(Enum):
CSV = 'csv'