From d5fc56b802f2195dfdad3f6c3e20a3832aa95567 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 27 Aug 2020 01:34:09 +0300 Subject: Import "reduce" without a try block * wqflask/wqflask/correlation_matrix/show_corr_matrix.py: Import 'reduce' --- wqflask/wqflask/correlation_matrix/show_corr_matrix.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'wqflask') 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 -- cgit v1.2.3