From b088fe017f64635152769d9e295567a6205427b3 Mon Sep 17 00:00:00 2001 From: mbohlool Date: Thu, 1 Dec 2016 01:28:20 -0800 Subject: [PATCH] Fix examples syntax error --- README.md | 4 ++-- examples/example1.py | 3 ++- examples/example2.py | 3 ++- examples/example3.py | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e477d73da..0b141da1e 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ import os from kubernetes import client, config # Configs can be set in Configuration class directly or using helper utility -config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config') +config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')) v1=client.CoreV1Api() print("Listing pods with their IPs:") @@ -48,7 +48,7 @@ import os from kubernetes import client, config, watch # Configs can be set in Configuration class directly or using helper utility -config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config') +config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')) v1 = client.CoreV1Api() count = 10 diff --git a/examples/example1.py b/examples/example1.py index e74be96cf..192c237dc 100644 --- a/examples/example1.py +++ b/examples/example1.py @@ -20,7 +20,8 @@ from kubernetes import client, config def main(): # Configs can be set in Configuration class directly or using helper # utility - config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config') + config.load_kube_config( + os.path.join(os.path.expanduser('~'), '.kube', 'config')) v1 = client.CoreV1Api() print("Listing pods with their IPs:") diff --git a/examples/example2.py b/examples/example2.py index a02d56355..07e8dfd68 100644 --- a/examples/example2.py +++ b/examples/example2.py @@ -20,7 +20,8 @@ from kubernetes import client, config, watch def main(): # Configs can be set in Configuration class directly or using helper # utility - config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config') + config.load_kube_config( + os.path.join(os.path.expanduser('~'), '.kube', 'config')) v1 = client.CoreV1Api() count = 10 diff --git a/examples/example3.py b/examples/example3.py index 01f152bd3..84904e44c 100644 --- a/examples/example3.py +++ b/examples/example3.py @@ -20,7 +20,8 @@ from kubernetes import client, config def main(): # Configs can be set in Configuration class directly or using helper # utility - config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config') + config.load_kube_config( + os.path.join(os.path.expanduser('~'), '.kube', 'config')) print("Supported APIs (* is preferred version):") print("%-20s %s" %