Repository 'jbrowse'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/jbrowse

Changeset 11:4cbceec1d6b4 (2016-12-14)
Previous changeset 10:1a6d882d340d (2016-12-02) Next changeset 12:db5fe5a3176a (2017-02-06)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 172014e3f03ea00dfd5fcd689e1246d001e82288
modified:
jbrowse.py
b
diff -r 1a6d882d340d -r 4cbceec1d6b4 jbrowse.py
--- a/jbrowse.py Fri Dec 02 17:58:54 2016 -0500
+++ b/jbrowse.py Wed Dec 14 09:19:48 2016 -0500
b
@@ -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