aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/temp_data.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 02:31:31 +0300
committerBonfaceKilz2020-08-19 02:34:42 +0300
commitba123e1e0fe693f9778993c3f8e5a70a28658a4c (patch)
tree6d02bac212da1bfeeb8330b94971383cde053602 /wqflask/utility/temp_data.py
parentbafbb5b7a4b7db2ca230f292eb45be7e67985259 (diff)
downloadgenenetwork2-ba123e1e0fe693f9778993c3f8e5a70a28658a4c.tar.gz
Fix dictionary iteration methods
Run `2to3-3.8 -f dict -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-dict> and <https://stackoverflow.com/questions/17695456/why-does-python-3-need-dict-items-to-be-wrapped-with-list>
Diffstat (limited to 'wqflask/utility/temp_data.py')
-rw-r--r--wqflask/utility/temp_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/temp_data.py b/wqflask/utility/temp_data.py
index 5bf700c9..2f2726c6 100644
--- a/wqflask/utility/temp_data.py
+++ b/wqflask/utility/temp_data.py
@@ -20,6 +20,6 @@ class TempData(object):
if __name__ == "__main__":
redis = Redis()
- for key in redis.keys():
+ for key in list(redis.keys()):
for field in redis.hkeys(key):
print("{}.{}={}".format(key, field, redis.hget(key, field)))