diff get_feature_info.py @ 2:840ea71e6318 draft

planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/Ensembl-REST commit 099d38157cec200f0a343579ca9babcd8acb266f
author earlhaminst
date Wed, 21 Dec 2016 15:16:22 -0500
parents 396f0f54d115
children 234d7babf34b
line wrap: on
line diff
--- a/get_feature_info.py	Mon Dec 12 07:47:09 2016 -0500
+++ b/get_feature_info.py	Wed Dec 21 15:16:22 2016 -0500
@@ -1,10 +1,12 @@
 # A simple tool to connect to the Ensembl server and retrieve feature
 # information using the Ensembl REST API.
+from __future__ import print_function
+
 import json
 import optparse
-from urlparse import urljoin
 
 import requests
+from six.moves.urllib.parse import urljoin
 
 parser = optparse.OptionParser()
 parser.add_option('-i', '--input', help='List of Ensembl IDs')
@@ -38,4 +40,4 @@
 if not r.ok:
     r.raise_for_status()
 
-print r.text
+print(r.text)