Py3 compatibility fixes

This commit is contained in:
Pedro Algarvio 2014-11-22 10:47:09 +00:00
parent 3624b911b3
commit f5928068b3

View File

@ -20,11 +20,14 @@ import integration
from salt.config import cloud_providers_config from salt.config import cloud_providers_config
# Import Third-Party Libs # Import Third-Party Libs
# pylint: disable=import-error
from salt.ext.six.moves import range # pylint: disable=redefined-builtin
try: try:
import libcloud # pylint: disable=W0611 import libcloud # pylint: disable=unused-import
HAS_LIBCLOUD = True HAS_LIBCLOUD = True
except ImportError: except ImportError:
HAS_LIBCLOUD = False HAS_LIBCLOUD = False
# pylint: enable=import-error
def __random_name(size=6): def __random_name(size=6):