update basestring -> string_types

This commit is contained in:
Erik Johnson 2014-03-20 18:51:52 -05:00
parent dacfae29aa
commit af5b2385f5

View File

@ -90,6 +90,7 @@ from uuid import uuid4 as _uuid
from salt.utils.odict import OrderedDict
from salt.utils import warn_until
from salt.state import HighState
from salt._compat import string_types
REQUISITES = set('require watch use require_in watch_in use_in'.split())
@ -255,7 +256,7 @@ class Sls(object):
modname, funcname = modname.rsplit('.', 1)
else:
funcname = (
x for x in args if isinstance(x, basestring)
x for x in args if isinstance(x, string_types)
).next()
args.remove(funcname)
mod = getattr(s, modname)