From a192255d7e1cc70eeae0c07ef2ef3bb8e5f176dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mat=C4=9Bjek?= Date: Tue, 29 Oct 2019 02:56:28 +0100 Subject: black formating --- pgcli/main.py | 25 ++++++++++++------------- 1 file 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: -- cgit v1.2.3