diff options
author | George Thomas <thegeorgeous@users.noreply.github.com> | 2020-01-15 10:26:07 +0530 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2020-01-14 20:56:07 -0800 |
commit | 77a361966a6cbe73ba153710f10f32cc27d167f5 (patch) | |
tree | 97e67bf9cf5c6813e2eb0e515a2e84472fd778f6 /pgcli | |
parent | 2b55da84812f94bc98d3586244f02749326062d5 (diff) |
Fix warning raised for using `is not` to compare string literal (#1139)
Using `is not` for comparing string literals raises warning that != should be
used.
Fixes #1138
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 2301d16f..54d4941f 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -1258,7 +1258,7 @@ def cli( if list_databases: database = "postgres" - if dsn is not "": + if dsn != "": try: cfg = load_config(pgclirc, config_full_path) dsn_config = cfg["alias_dsn"][dsn] |