aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-09-26 01:16:58 +0300
committerBonfaceKilz2020-09-26 01:16:58 +0300
commit0dc2401b9f66456315808f4c781dd88417941b01 (patch)
treec7f7b29062e5df893876255128c6968e3ff1aef3
parent7f94f657e51bbf9a7a1064b12a7d67b53a14eb11 (diff)
downloadgenenetwork2-0dc2401b9f66456315808f4c781dd88417941b01.tar.gz
Run 2to3-8 tool through file
* wqflask/wqflask/db_info.py: Run: 2to3-3.8 -w wqflask/wqflask/db_info.py
-rw-r--r--wqflask/wqflask/db_info.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/db_info.py b/wqflask/wqflask/db_info.py
index 5f3f5e3f..45a4c96e 100644
--- a/wqflask/wqflask/db_info.py
+++ b/wqflask/wqflask/db_info.py
@@ -1,4 +1,4 @@
-import httplib, urllib2
+import http.client, urllib.request, urllib.error, urllib.parse
import re
from flask import Flask, g
@@ -63,7 +63,7 @@ class InfoPage(object):
def get_datasets_list(self):
self.filelist = []
try:
- response = urllib2.urlopen("http://datafiles.genenetwork.org/download/GN%s" % self.gn_accession_id)
+ response = urllib.request.urlopen("http://datafiles.genenetwork.org/download/GN%s" % self.gn_accession_id)
data = response.read()
matches = re.findall(r"<tr>.+?</tr>", data, re.DOTALL)
@@ -77,7 +77,7 @@ class InfoPage(object):
filedate = "N/A" #ZS: Since we can't get it for now
self.filelist.append([filename, filedate, filesize])
- except Exception, e:
+ except Exception as e:
pass
def process_query_results(results):