aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 03:01:33 +0300
committerBonfaceKilz2020-08-19 03:01:33 +0300
commite63331da5ed0a11f2a558d799dd570bf44ad584e (patch)
tree0828f16ac423a9f1ba3f903316cac17c7ab57db5 /wqflask/maintenance
parente55b1502340cc99cd8a5d705261a5ff3c87f3718 (diff)
downloadgenenetwork2-e63331da5ed0a11f2a558d799dd570bf44ad584e.tar.gz
Replace `izip` with python's built-in equivalent
Run `2to3-3.8 -f itertools -w . && 2to3-3.8 -f itertools_imports -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-itertools_imports> and <https://docs.python.org/2/library/2to3.html#2to3fixer-itertools>
Diffstat (limited to 'wqflask/maintenance')
-rw-r--r--wqflask/maintenance/quantile_normalize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/maintenance/quantile_normalize.py b/wqflask/maintenance/quantile_normalize.py
index 41a3aad8..34886f44 100644
--- a/wqflask/maintenance/quantile_normalize.py
+++ b/wqflask/maintenance/quantile_normalize.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import, print_function, division
import sys
sys.path.insert(0,'./')
-from itertools import izip
+
import MySQLdb
import urlparse
@@ -60,7 +60,7 @@ def set_data(dataset_name):
sample_list = []
with open(orig_file, 'r') as orig_fh, open('/home/zas1024/cfw_data/quant_norm.csv', 'r') as quant_fh:
- for i, (line1, line2) in enumerate(izip(orig_fh, quant_fh)):
+ for i, (line1, line2) in enumerate(zip(orig_fh, quant_fh)):
trait_dict = {}
sample_list = []
if i == 0: