mirror of https://github.com/dbcli/pgcli
black formating
This commit is contained in:
parent
f3dc23a94b
commit
a192255d7e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue