diff options
author | fraoustin <fraoustin@gmail.com> | 2018-02-17 22:02:06 +0100 |
---|---|---|
committer | fraoustin <fraoustin@gmail.com> | 2018-02-17 22:02:06 +0100 |
commit | f671d2f922904b397a13f70bcce3ec14032cdf57 (patch) | |
tree | 522cc83b063d73e726de4ff465501880079af62d | |
parent | 7f53f09c9fe6513519cf8d3bc05626301c0d8b42 (diff) |
correction for pep8radius master --docformatter --diff
-rw-r--r-- | pgcli/main.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index f8105cfc..d2e63fec 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -852,7 +852,7 @@ class PGCli(object): @click.option('-D', '--dsn', default='', envvar='DSN', help='Use DSN configured into the [alias_dsn] section of pgclirc file.') @click.option('--list-dsn', 'list_dsn', is_flag=True, - help='list of DSN configured into the [alias_dsn] section of pgclirc file.') + help='list of DSN configured into the [alias_dsn] section of pgclirc file.') @click.option('--row-limit', default=None, envvar='PGROWLIMIT', type=click.INT, help='Set threshold for row limit prompt. Use 0 to disable prompt.') @click.option('--less-chatty', 'less_chatty', is_flag=True, @@ -890,18 +890,18 @@ def cli(database, username_opt, host, port, prompt_passwd, never_prompt, print ('Config file is now located at', config_full_path) print ('Please move the existing config file ~/.pgclirc to', config_full_path) - if list_dsn : + if list_dsn: try: cfg = load_config(pgclirc, config_full_path) for alias in cfg['alias_dsn']: click.secho(alias + " : " + cfg['alias_dsn'][alias]) sys.exit(0) except Exception as err: - click.secho('Invalid DSNs found in the config file. '\ - 'Please check the "[alias_dsn]" section in pgclirc.', - err=True, fg='red') + click.secho('Invalid DSNs found in the config file. ' + 'Please check the "[alias_dsn]" section in pgclirc.', + err=True, fg='red') exit(1) - + pgcli = PGCli(prompt_passwd, never_prompt, pgclirc_file=pgclirc, row_limit=row_limit, single_connection=single_connection, less_chatty=less_chatty, prompt=prompt, prompt_dsn=prompt_dsn, |