summaryrefslogtreecommitdiff
path: root/ironic_python_agent/api
diff options
context:
space:
mode:
authorRiccardo Pittau <elfosardo@gmail.com>2019-11-28 17:10:40 +0100
committerRiccardo Pittau <elfosardo@gmail.com>2019-11-29 10:18:14 +0100
commitca7a46b113c64edd87bfa7b9f56fdb97a0c96dd6 (patch)
tree3e1915ed3e922dc43f46b8e2c744e7b63c37231b /ironic_python_agent/api
parent8e246f4482151ebbce4de552a6bad403aa0f37ea (diff)
downloadironic-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/api')
-rw-r--r--ironic_python_agent/api/controllers/v1/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ironic_python_agent/api/controllers/v1/base.py b/ironic_python_agent/api/controllers/v1/base.py
index b221124d..c3644efa 100644
--- a/ironic_python_agent/api/controllers/v1/base.py
+++ b/ironic_python_agent/api/controllers/v1/base.py
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import six
from wsme import types as wtypes
@@ -67,7 +66,7 @@ class MultiType(wtypes.UserType):
type=self.types, value=type(value)))
-json_type = MultiType(list, dict, six.integer_types, wtypes.text)
+json_type = MultiType(list, dict, int, wtypes.text)
class APIBase(wtypes.Base):