From c266ee969a63a7c6b212739fdb9f9d08a998f0f4 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 31 Dec 2017 22:05:32 -0500 Subject: [PATCH] Added explicit default parameter --- src/utils/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/utils.py b/src/utils/utils.py index ebb30d1..cdc0967 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -82,10 +82,10 @@ def dump(obj, filename, *, json=False): jsn.dump(obj, outfile, indent=4, sort_keys=True) -settings = setdefault('misc/settings.pkl', {'del_ctx': [], 'del_resp': [], 'prefixes': {}}) -tasks = setdefault('cogs/tasks.pkl', {'auto_del': [], 'auto_hrt': [], 'auto_rev': [], 'periodic_gpm': []}) -temp = setdefault('temp/temp.pkl', {'startup': ()}) -secrets = setdefault('secrets.json', {'client_secrets': {'client_id': '', 'client_secret': ''}}, json=True) +settings = setdefault('misc/settings.pkl', default={'del_ctx': [], 'del_resp': [], 'prefixes': {}}) +tasks = setdefault('cogs/tasks.pkl', default={'auto_del': [], 'auto_hrt': [], 'auto_rev': [], 'periodic_gpm': []}) +temp = setdefault('temp/temp.pkl', default={'startup': ()}) +secrets = setdefault('secrets.json', default={'client_secrets': {'client_id': '', 'client_secret': ''}}, json=True) RATE_LIMIT = 2.2 color = d.Color(0x1A1A1A)