python: Remove usage of six (#16675)

This commit is contained in:
Aarni Koskela
2023-09-28 14:26:42 +03:00
committed by GitHub
parent 3c4561ece2
commit 67b129fda9
31 changed files with 30 additions and 58 deletions

View File

@@ -14,9 +14,6 @@ from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from petstore_api.api_client import ApiClient
from petstore_api.exceptions import ( # noqa: F401
ApiTypeError,
@@ -119,7 +116,7 @@ class FakeClassnameTags123Api(object):
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
for key, val in local_var_params['kwargs'].items():
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"

View File

@@ -10,7 +10,6 @@ $ pytest
"""
import os
import six
import sys
import unittest

View File

@@ -10,7 +10,6 @@ $ pytest
"""
import os
import six
import sys
import unittest