Merge pull request #20431 from SmithSamuelM/sam_20150124

Changed test from str to basestring
This commit is contained in:
Thomas S Hatch 2015-02-05 14:09:14 -07:00
commit ef3fd7ce90

View File

@ -2442,7 +2442,7 @@ class Matcher(object):
'''
Returns true if the passed glob matches the id
'''
if not isinstance(tgt, str):
if not isinstance(tgt, basestring):
return False
return fnmatch.fnmatch(self.opts['id'], tgt)