Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove some six usage #2224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file is generated by openapi-generator. The change needs to be made upstream. Otherwise the change will be override when we re-generate the client

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I think it's already gone. OpenAPITools/openapi-generator#16675
Wait & see


from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -165,7 +164,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -136,7 +135,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -165,7 +164,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -136,7 +135,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -135,7 +134,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/authentication_v1_token_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -186,7 +185,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/core_v1_endpoint_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -164,7 +163,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/core_v1_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -519,7 +518,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/core_v1_event_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -162,7 +161,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/core_v1_event_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -107,7 +106,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/discovery_v1_endpoint_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -163,7 +162,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/events_v1_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -518,7 +517,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/events_v1_event_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -162,7 +161,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/events_v1_event_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -109,7 +108,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/flowcontrol_v1_subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -158,7 +157,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/rbac_v1_subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -165,7 +164,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/storage_v1_token_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -108,7 +107,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/v1_affinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -129,7 +128,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/v1_aggregation_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -79,7 +78,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/v1_api_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -219,7 +218,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/v1_api_group_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -136,7 +135,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/v1_api_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -336,7 +335,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/client/models/v1_api_resource_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import pprint
import re # noqa: F401

import six

from kubernetes.client.configuration import Configuration

Expand Down Expand Up @@ -165,7 +164,7 @@ def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
for attr, _ in self.openapi_types.items():
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
Expand Down
Loading