Skip to content

Commit

Permalink
use six.string_types instead of basestring for isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Dec 12, 2017
1 parent 78a2626 commit f6fbe63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/visualization/genomes.py
Expand Up @@ -4,6 +4,7 @@
import sys
from json import loads

import six
from bx.seq.twobit import TwoBitFile

from galaxy.util.bunch import Bunch
Expand All @@ -26,7 +27,7 @@

def decode_dbkey(dbkey):
""" Decodes dbkey and returns tuple ( username, dbkey )"""
if isinstance(dbkey, basestring) and ':' in dbkey:
if isinstance(dbkey, six.string_types) and ':' in dbkey:
return dbkey.split(':')
else:
return None, dbkey
Expand Down

0 comments on commit f6fbe63

Please sign in to comment.