projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4cd01dc
)
Use six.moves to find urlencode and urlopen
author
Diane Trout
<diane@ghic.org>
Fri, 20 Mar 2015 23:25:20 +0000
(16:25 -0700)
committer
Diane Trout
<diane@ghic.org>
Fri, 20 Mar 2015 23:25:20 +0000
(16:25 -0700)
htsworkflow/pipelines/retrieve_config.py
patch
|
blob
|
history
diff --git
a/htsworkflow/pipelines/retrieve_config.py
b/htsworkflow/pipelines/retrieve_config.py
index 69d85584b3a610bd863a6e72cb1269ca02b56af1..7c64050c0f3d2b5d04e80f9d6391b11e9266a51d 100644
(file)
--- a/
htsworkflow/pipelines/retrieve_config.py
+++ b/
htsworkflow/pipelines/retrieve_config.py
@@
-8,6
+8,7
@@
import os
import sys
import types
import six
import sys
import types
import six
+from six.moves import urllib
try:
import json
try:
import json
@@
-46,9
+47,9
@@
def retrieve_flowcell_info(base_host_url, flowcell):
url = api.flowcell_url(base_host_url, flowcell)
try:
url = api.flowcell_url(base_host_url, flowcell)
try:
- apipayload = urllib.urlencode(apidata)
- web = urllib
2
.urlopen(url, apipayload)
- except urllib
2.URL
Error as e:
+ apipayload = urllib.
parse.
urlencode(apidata)
+ web = urllib
.request
.urlopen(url, apipayload)
+ except urllib
.request.HTTP
Error as e:
errmsg = 'URLError: %d %s' % (e.code, e.msg)
LOGGER.error(errmsg)
LOGGER.error('opened %s' % (url,))
errmsg = 'URLError: %d %s' % (e.code, e.msg)
LOGGER.error(errmsg)
LOGGER.error('opened %s' % (url,))