changeset 11:4cbceec1d6b4 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 172014e3f03ea00dfd5fcd689e1246d001e82288
author iuc
date Wed, 14 Dec 2016 09:19:48 -0500
parents 1a6d882d340d
children db5fe5a3176a
files jbrowse.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jbrowse.py	Fri Dec 02 17:58:54 2016 -0500
+++ b/jbrowse.py	Wed Dec 14 09:19:48 2016 -0500
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 import argparse
+import codecs
 import copy
 import hashlib
 import json
@@ -127,7 +128,7 @@
 
     def rgb_from_hex(self, hexstr):
         # http://stackoverflow.com/questions/4296249/how-do-i-convert-a-hex-triplet-to-an-rgb-tuple-and-back
-        return struct.unpack('BBB', hexstr.decode('hex'))
+        return struct.unpack('BBB', codecs.decode(hexstr, 'hex'))
 
     def min_max_gff(self, gff_file):
         min_val = None