From d3f4a3d7f5a14c78b56bcc0609c32f74f0c0f845 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 8 May 2023 11:37:42 +0100 Subject: Blacken everything else Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I356643d06b2cd408ccaedfe02b858aea55388949 Signed-off-by: Stephen Finucane --- examples/common.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/common.py b/examples/common.py index d472fe6b..d97bfb55 100755 --- a/examples/common.py +++ b/examples/common.py @@ -57,6 +57,7 @@ dump_stack_trace = False # Generally useful stuff often found in a utils module + def env(*vars, **kwargs): """Search for the first defined of possibly many env vars @@ -73,6 +74,7 @@ def env(*vars, **kwargs): # Common Example functions + def base_parser(parser): """Set up some of the common CLI options @@ -128,7 +130,8 @@ def base_parser(parser): help="Print API call timing info", ) parser.add_argument( - '-v', '--verbose', + '-v', + '--verbose', action='count', dest='verbose_level', default=1, @@ -225,16 +228,14 @@ def make_session(opts, **kwargs): ) auth_p = auth_plugin.load_from_options(**auth_params) - session = ks_session.Session( - auth=auth_p, - **kwargs - ) + session = ks_session.Session(auth=auth_p, **kwargs) return session # Top-level functions + def run(opts): """Default run command""" -- cgit v1.2.1