diff options
author | Martin Matějek <martin.matejek@gmx.com> | 2019-10-29 02:56:28 +0100 |
---|---|---|
committer | Martin Matějek <martin.matejek@gmx.com> | 2019-10-29 02:56:28 +0100 |
commit | a192255d7e1cc70eeae0c07ef2ef3bb8e5f176dd (patch) | |
tree | 7e8d84d5a5e280f44b2cba8ed10b4e140ba1d24b | |
parent | f3dc23a94b57ccd7c1909dc32174b3bc8c501919 (diff) |
black formating
-rw-r--r-- | pgcli/main.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index d5f6bd89..2b852b04 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -672,7 +672,7 @@ class PGCli(object): if self.pgspecial.timing_enabled: # Only add humanized time display if > 1 second if query.total_time > 1: - print ( + print( "Time: %0.03fs (%s), executed in: %0.03fs (%s)" % ( query.total_time, @@ -682,7 +682,7 @@ class PGCli(object): ) ) else: - print ("Time: %0.03fs" % query.total_time) + print("Time: %0.03fs" % query.total_time) # Check if we need to update completions, in order of most # to least drastic changes @@ -711,10 +711,10 @@ class PGCli(object): self.prompt_app = self._build_cli(history) if not self.less_chatty: - print ("Server: PostgreSQL", self.pgexecute.server_version) - print ("Version:", __version__) - print ("Chat: https://gitter.im/dbcli/pgcli") - print ("Home: http://pgcli.com") + print("Server: PostgreSQL", self.pgexecute.server_version) + print("Version:", __version__) + print("Chat: https://gitter.im/dbcli/pgcli") + print("Home: http://pgcli.com") try: while True: @@ -758,7 +758,7 @@ class PGCli(object): except (PgCliQuitError, EOFError): if not self.less_chatty: - print ("Goodbye!") + print("Goodbye!") def _build_cli(self, history): key_bindings = pgcli_bindings(self) @@ -1200,7 +1200,7 @@ def cli( warn, ): if version: - print ("Version:", __version__) + print("Version:", __version__) sys.exit(0) config_dir = os.path.dirname(config_location()) @@ -1212,12 +1212,11 @@ def cli( if os.path.exists(os.path.expanduser("~/.pgclirc")): if not os.path.exists(config_full_path): shutil.move(os.path.expanduser("~/.pgclirc"), config_full_path) - print ("Config file (~/.pgclirc) moved to new location", config_full_path) + print("Config file (~/.pgclirc) moved to new location", config_full_path) else: - print ("Config file is now located at", config_full_path) - print ( - "Please move the existing config file ~/.pgclirc to", - config_full_path, + 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: try: |