diff --git a/kubernetes/config/incluster_config.py b/kubernetes/config/incluster_config.py index d0b21afd3..b4cc3c99d 100644 --- a/kubernetes/config/incluster_config.py +++ b/kubernetes/config/incluster_config.py @@ -36,6 +36,7 @@ class ConfigException(Exception): class InClusterConfigLoader(object): + def __init__(self, host_env_name, port_env_name, token_filename, cert_filename, environ=os.environ): self._host_env_name = host_env_name diff --git a/kubernetes/config/incluster_config_test.py b/kubernetes/config/incluster_config_test.py index e69f7d4d8..7f7405e4f 100644 --- a/kubernetes/config/incluster_config_test.py +++ b/kubernetes/config/incluster_config_test.py @@ -18,8 +18,8 @@ import unittest from kubernetes.client import configuration -from .incluster_config import (ConfigException, InClusterConfigLoader, - _SERVICE_HOST_ENV_NAME, _SERVICE_PORT_ENV_NAME) +from .incluster_config import (_SERVICE_HOST_ENV_NAME, _SERVICE_PORT_ENV_NAME, + ConfigException, InClusterConfigLoader) _TEST_TOKEN = "temp_token" _TEST_HOST = "127.0.0.1" diff --git a/scripts/preprocess_spec.py b/scripts/preprocess_spec.py index 8dc6226ca..bf8d9509d 100644 --- a/scripts/preprocess_spec.py +++ b/scripts/preprocess_spec.py @@ -18,7 +18,6 @@ import os.path import sys from collections import OrderedDict - # these four constants are shown as part of this example in []: # "[watch]Pod[List]" is the deprecated version of "[list]Pod?[watch]=True" WATCH_OP_PREFIX = "watch" diff --git a/scripts/update-pep8.sh b/scripts/update-pep8.sh index a12d8bedf..8b3b35a79 100755 --- a/scripts/update-pep8.sh +++ b/scripts/update-pep8.sh @@ -46,7 +46,7 @@ SAVEIFS=$IFS trap "IFS=$SAVEIFS" EXIT SIGINT IFS=, -SOURCES="${CLIENT_ROOT}/util/*.py,${SCRIPT_ROOT}/*.py,${CLIENT_ROOT}/examples/*.py" +SOURCES="${SCRIPT_ROOT}/../setup.py,${CLIENT_ROOT}/config/*.py,${CLIENT_ROOT}/watch/*.py,${SCRIPT_ROOT}/*.py,${CLIENT_ROOT}/../examples/*.py" echo "--- Updating tools" pip install --upgrade pep8