diff get_genetree.py @ 2:950d9d11b6fb 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:35 -0500
parents 98aba0efe77a
children 675fd774314e
line wrap: on
line diff
--- a/get_genetree.py	Mon Dec 12 07:47:26 2016 -0500
+++ b/get_genetree.py	Wed Dec 21 15:16:35 2016 -0500
@@ -1,9 +1,11 @@
 # A simple tool to connect to the Ensembl server and retrieve genetree using
 # the Ensembl REST API.
+from __future__ import print_function
+
 import optparse
-from urlparse import urljoin
 
 import requests
+from six.moves.urllib.parse import urljoin
 
 parser = optparse.OptionParser()
 parser.add_option('--id_type', type='choice', default='gene_id',
@@ -55,4 +57,4 @@
 if not r.ok:
     r.raise_for_status()
 
-print r.text
+print(r.text)