diff --git a/doc/source/conf.py b/doc/source/conf.py index a5f0a1fc66..af63591fb6 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -30,7 +30,7 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', - #'sphinx.ext.intersphinx', + # 'sphinx.ext.intersphinx', ] # autodoc generation is a bit aggressive and a nuisance when doing heavy @@ -79,4 +79,4 @@ ] # Example configuration for intersphinx: refer to the Python standard library. -#intersphinx_mapping = {'http://docs.python.org/': None} +# intersphinx_mapping = {'http://docs.python.org/': None} diff --git a/examples/create_deployment.py b/examples/create_deployment.py index 0ce1e2fa1d..c5c9d9fdd1 100644 --- a/examples/create_deployment.py +++ b/examples/create_deployment.py @@ -15,7 +15,6 @@ from os import path import yaml - from kubernetes import client, config diff --git a/examples/deployment_examples.py b/examples/deployment_examples.py index 29f55d34d3..a5151a204e 100644 --- a/examples/deployment_examples.py +++ b/examples/deployment_examples.py @@ -15,7 +15,6 @@ from os import path import yaml - from kubernetes import client, config DEPLOYMENT_NAME = "nginx-deployment" diff --git a/examples/example4.py b/examples/example4.py index 5c05495853..ab70c52f35 100644 --- a/examples/example4.py +++ b/examples/example4.py @@ -14,6 +14,7 @@ from kubernetes import client, config from kubernetes.client import configuration + # install pick using "pip install pick". It is not included # as a dependency because it only used in examples from pick import pick diff --git a/examples/multiple_clusters.py b/examples/multiple_clusters.py index 68a5d2ff8c..2311ca823e 100644 --- a/examples/multiple_clusters.py +++ b/examples/multiple_clusters.py @@ -13,6 +13,7 @@ # limitations under the License. from kubernetes import client, config + # install pick using "pip install pick". It is not included # as a dependency because it only used in examples from pick import pick diff --git a/examples/remote_cluster.py b/examples/remote_cluster.py index 8cf39efec5..cb0f381bd8 100644 --- a/examples/remote_cluster.py +++ b/examples/remote_cluster.py @@ -23,7 +23,8 @@ def main(): # Define the barer token we are going to use to authenticate. # See here to create the token: # https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/ - aToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + aToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\ + "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # Create a configuration object aConfiguration = client.Configuration() diff --git a/kubernetes/utils/create_from_yaml.py b/kubernetes/utils/create_from_yaml.py index 4a69a8ad51..c4d709fb5e 100644 --- a/kubernetes/utils/create_from_yaml.py +++ b/kubernetes/utils/create_from_yaml.py @@ -18,9 +18,8 @@ from os import path import yaml -from six import iteritems - from kubernetes import client +from six import iteritems def create_from_yaml(k8s_client, yaml_file, verbose=False, **kwargs): @@ -33,9 +32,14 @@ def create_from_yaml(k8s_client, yaml_file, verbose=False, **kwargs): Available parameters for performing the subsequent action: :param async_req bool - :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param bool include_uninitialized: If true, partially initialized + resources are included in the response. :param str pretty: If 'true', then the output is pretty printed. - :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + :param str dry_run: When present, indicates that modifications + should not be persisted. An invalid or unrecognized dryRun + directive will result in an error response and no further + processing of the request. Valid values are: - All: + all dry run stages will be processed """ with open(path.abspath(yaml_file)) as f: