Merging upstream version 1.6.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4b3dd727fd
commit
12edc19d72
17 changed files with 95 additions and 53 deletions
|
@ -704,8 +704,7 @@ class LiteCli(object):
|
|||
]
|
||||
|
||||
def _on_completions_refreshed(self, new_completer):
|
||||
"""Swap the completer object in cli with the newly created completer.
|
||||
"""
|
||||
"""Swap the completer object in cli with the newly created completer."""
|
||||
with self._completer_lock:
|
||||
self.completer = new_completer
|
||||
|
||||
|
@ -725,6 +724,7 @@ class LiteCli(object):
|
|||
sqlexecute = self.sqlexecute
|
||||
now = datetime.now()
|
||||
string = string.replace("\\d", sqlexecute.dbname or "(none)")
|
||||
string = string.replace("\\f", os.path.basename(sqlexecute.dbname or "(none)"))
|
||||
string = string.replace("\\n", "\n")
|
||||
string = string.replace("\\D", now.strftime("%a %b %d %H:%M:%S %Y"))
|
||||
string = string.replace("\\m", now.strftime("%M"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue