From 0dc2401b9f66456315808f4c781dd88417941b01 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Sat, 26 Sep 2020 01:16:58 +0300 Subject: Run 2to3-8 tool through file * wqflask/wqflask/db_info.py: Run: 2to3-3.8 -w wqflask/wqflask/db_info.py --- wqflask/wqflask/db_info.py | 6 +++--- 1 file 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".+?", 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): -- cgit v1.2.3