diff options
| author | Riccardo Pittau <elfosardo@gmail.com> | 2019-11-28 17:10:40 +0100 |
|---|---|---|
| committer | Riccardo Pittau <elfosardo@gmail.com> | 2019-11-29 10:18:14 +0100 |
| commit | ca7a46b113c64edd87bfa7b9f56fdb97a0c96dd6 (patch) | |
| tree | 3e1915ed3e922dc43f46b8e2c744e7b63c37231b /ironic_python_agent/utils.py | |
| parent | 8e246f4482151ebbce4de552a6bad403aa0f37ea (diff) | |
| download | ironic-python-agent-ca7a46b113c64edd87bfa7b9f56fdb97a0c96dd6.tar.gz | |
Stop using six library
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.
Change-Id: I4795417aa649be75ba7162a8cf30eacbb88c7b5e
Diffstat (limited to 'ironic_python_agent/utils.py')
| -rw-r--r-- | ironic_python_agent/utils.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ironic_python_agent/utils.py b/ironic_python_agent/utils.py index 0257cfb1..639b6f21 100644 --- a/ironic_python_agent/utils.py +++ b/ironic_python_agent/utils.py @@ -29,7 +29,6 @@ from oslo_concurrency import processutils from oslo_log import log as logging from oslo_serialization import base64 from oslo_utils import units -from six.moves.urllib import parse from ironic_python_agent import errors @@ -231,17 +230,6 @@ def get_agent_params(): return copy.deepcopy(params) -def normalize(string): - """Return a normalized string. - - Take a urlencoded value from Ironic and urldecode it. - - :param string: a urlencoded string - :returns: a normalized version of passed in string - """ - return parse.unquote(string).lower().strip() - - class AccumulatedFailures(object): """Object to accumulate failures without raising exception.""" |
