# HG changeset patch # User iuc # Date 1481725188 18000 # Node ID 4cbceec1d6b4649fd4cfd57fdfb42f542b400838 # Parent 1a6d882d340d39c345b7dae46a54aa7121507ef1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 172014e3f03ea00dfd5fcd689e1246d001e82288 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 @@ -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