aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-09-16 15:39:28 +0530
committerArun Isaac2022-09-16 15:39:28 +0530
commit0ac7b18c846fe8df134a2241bb0163e9fd4b7633 (patch)
tree1f16385c317507fc6b9be9f2a6ebde045f1ebb4a
parent635682c9d206cd9ae6ea184f9361937b0a272b90 (diff)
downloadgenenetwork2-0ac7b18c846fe8df134a2241bb0163e9fd4b7633.tar.gz
Initialize empty MonadicDict by default.
* wqflask/utility/monads.py (MonadicDict)[__init__]: Set default dictionary argument to the empty dictionary.
-rw-r--r--wqflask/utility/monads.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/monads.py b/wqflask/utility/monads.py
index fbcb2c23..d683b0ae 100644
--- a/wqflask/utility/monads.py
+++ b/wqflask/utility/monads.py
@@ -21,7 +21,7 @@ class MonadicDict(UserDict):
Keys in this dictionary can be any python object, but values must
be monadic values.
"""
- def __init__(self, d, convert=True):
+ def __init__(self, d={}, convert=True):
"""
Initialize monadic dictionary.