Py3 compatibility fixes.

This commit is contained in:
Pedro Algarvio 2014-11-23 23:05:06 +00:00
parent 748037e013
commit c35f50e2ac

View File

@ -8,11 +8,10 @@ from __future__ import absolute_import
import logging
# Import 3rd-party libs
from salt.ext.six.moves import range, shlex_quote as _cmd_quote # pylint: disable=import-error,redefined-builtin
try:
from shlex import quote as _cmd_quote # pylint: disable=E0611
except ImportError:
from pipes import quote as _cmd_quote
# pylint: disable=import-error,redefined-builtin
from salt.ext.six.moves import range
from salt.ext.six.moves import shlex_quote as _cmd_quote
# pylint: enable=import-error,redefined-builtin
# Import salt libs
import salt.utils