diff options
author | Rishi Ramraj <thereisnocowlevel@gmail.com> | 2018-05-15 11:57:19 -0400 |
---|---|---|
committer | Rishi Ramraj <thereisnocowlevel@gmail.com> | 2018-05-15 11:57:19 -0400 |
commit | f520b2ebb22f333ada81c5b27812a64099414b67 (patch) | |
tree | 7a3e56c5baea2d37b391acbc49384bda6fcbcad5 /pgcli | |
parent | b44357dc6719b0e10c1dbe4fae540294727cb93c (diff) |
Add is_special to the \\o command
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index e8715a85..b05cf88d 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -303,7 +303,7 @@ class PGCli(object): if not pattern: self.output_file = None message = 'File output disabled' - return [(None, None, None, message, '', True)] + return [(None, None, None, message, '', True, True)] filename = os.path.abspath(os.path.expanduser(pattern)) if not os.path.isfile(filename): try: @@ -311,10 +311,10 @@ class PGCli(object): except IOError as e: self.output_file = None message = str(e) + '\nFile output disabled' - return [(None, None, None, message, '', False)] + return [(None, None, None, message, '', False, True)] self.output_file = filename message = 'Writing to file "%s"' % self.output_file - return [(None, None, None, message, '', True)] + return [(None, None, None, message, '', True, True)] def initialize_logging(self): |