diff options
author | BonfaceKilz | 2020-08-20 16:35:17 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-08-20 16:35:17 +0300 |
commit | 1f4fb6b24f3508d80be1f07cd62e38ac9385ef41 (patch) | |
tree | bbe3a5966fb4c57b3e10b5550c1cc9c4d90d1b51 /wqflask/maintenance/gen_select_dataset.py | |
parent | b32004bc517d9a58be52662297e541c23f60355b (diff) | |
download | genenetwork2-1f4fb6b24f3508d80be1f07cd62e38ac9385ef41.tar.gz |
Handle module renames in the standard library
Run:
```
2to3-3.8 -f imports -w . && \
2to3-3.8 -f imports2 -w .
```
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-imports> and
<https://docs.python.org/2/library/2to3.html#2to3fixer-imports2>
Diffstat (limited to 'wqflask/maintenance/gen_select_dataset.py')
-rw-r--r-- | wqflask/maintenance/gen_select_dataset.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py index d12b328f..fd65a52a 100644 --- a/wqflask/maintenance/gen_select_dataset.py +++ b/wqflask/maintenance/gen_select_dataset.py @@ -50,7 +50,7 @@ from utility.tools import locate, locate_ignore_error, TEMPDIR, SQL_URI import MySQLdb import simplejson as json -import urlparse +import urllib.parse #import sqlalchemy as sa @@ -66,7 +66,7 @@ from pprint import pformat as pf def parse_db_uri(): """Converts a database URI to the db name, host name, user name, and password""" - parsed_uri = urlparse.urlparse(SQL_URI) + parsed_uri = urllib.parse.urlparse(SQL_URI) db_conn_info = dict( db = parsed_uri.path[1:], |