diff get_feature_info.py @ 2:4b7261f484bb 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:49 -0500
parents e5dd4bd78bbc
children 3b686142e9c2
line wrap: on
line diff
--- a/get_feature_info.py	Mon Dec 12 07:47:42 2016 -0500
+++ b/get_feature_info.py	Wed Dec 21 15:16:49 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)