Replace use of basestring
basestring no longer exists in Python 3, str can be used in its place. Change-Id: Icc386307a88c2a9ed2a3e7957b5f12a54c8ce8f4 Implements: blueprint goal-python35
This commit is contained in:
parent
d8cd4901ba
commit
60363db63b
@ -718,7 +718,7 @@ class LookupModule(BASECLASS):
|
|||||||
:type kwargs: ``dict``
|
:type kwargs: ``dict``
|
||||||
:returns: ``list``
|
:returns: ``list``
|
||||||
"""
|
"""
|
||||||
if isinstance(terms, basestring):
|
if isinstance(terms, str):
|
||||||
terms = [terms]
|
terms = [terms]
|
||||||
|
|
||||||
return_data = PACKAGE_MAPPING
|
return_data = PACKAGE_MAPPING
|
||||||
@ -772,7 +772,7 @@ class LookupModule(BASECLASS):
|
|||||||
self.ansible_v1_basedir,
|
self.ansible_v1_basedir,
|
||||||
inject
|
inject
|
||||||
)
|
)
|
||||||
if isinstance(terms, basestring):
|
if isinstance(terms, str):
|
||||||
terms = [terms]
|
terms = [terms]
|
||||||
|
|
||||||
return_data = PACKAGE_MAPPING
|
return_data = PACKAGE_MAPPING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user