diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2018-05-14 17:30:52 -0400 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2018-05-14 17:30:52 -0400 |
commit | 740d4f1249f49f2c3d7d7384589e0d3dbc0b8f5d (patch) | |
tree | e3ffd663f909fb95cfc30c0c12d58706d87110d8 /pgcli | |
parent | dc74a0acd004126bd3d01a0fd6f1df9acae23db1 (diff) |
Fix lint complaints.
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/main.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index ca4d4efa..ad36404c 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -458,12 +458,14 @@ class PGCli(object): while special.editor_command(document.text): filename = special.get_filename(document.text) query = (special.get_editor_query(document.text) or - self.get_last_query()) - sql, message = special.open_external_editor(filename, sql=query) + self.get_last_query()) + sql, message = special.open_external_editor( + filename, sql=query) if message: # Something went wrong. Raise an exception and bail. raise RuntimeError(message) - cli.current_buffer.document = Document(sql, cursor_position=len(sql)) + cli.current_buffer.document = Document(sql, + cursor_position=len(sql)) cli.application.pre_run_callables = [] document = cli.run() finally: |