aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-27 01:34:09 +0300
committerBonfaceKilz2020-08-27 01:42:46 +0300
commitd5fc56b802f2195dfdad3f6c3e20a3832aa95567 (patch)
tree3abd198118b1721603f5ed415577b9baa3d4314f /wqflask
parent46443ec8d2cdfd7c60358a889d90a90e4f7daaf4 (diff)
downloadgenenetwork2-d5fc56b802f2195dfdad3f6c3e20a3832aa95567.tar.gz
Import "reduce" without a try block
* wqflask/wqflask/correlation_matrix/show_corr_matrix.py: Import 'reduce'
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation_matrix/show_corr_matrix.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/wqflask/wqflask/correlation_matrix/show_corr_matrix.py b/wqflask/wqflask/correlation_matrix/show_corr_matrix.py
index dac4037e..49ba9e5d 100644
--- a/wqflask/wqflask/correlation_matrix/show_corr_matrix.py
+++ b/wqflask/wqflask/correlation_matrix/show_corr_matrix.py
@@ -29,10 +29,8 @@ import rpy2.robjects as robjects
from pprint import pformat as pf
from utility.redis_tools import get_redis_conn
-try: # Only import this for Python3
- from functools import reduce
-except:
- pass
+from functools import reduce
+
Redis = get_redis_conn()
THIRTY_DAYS = 60 * 60 * 24 * 30