mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
update basestring -> string_types
This commit is contained in:
parent
dacfae29aa
commit
af5b2385f5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user