From ca7a46b113c64edd87bfa7b9f56fdb97a0c96dd6 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Thu, 28 Nov 2019 17:10:40 +0100 Subject: 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 --- ironic_python_agent/api/controllers/v1/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ironic_python_agent/api/controllers') 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): -- cgit v1.2.1