summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-03-04 15:45:53 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-03-04 15:45:53 +0000
commitf24659b72bfb04d30c10e8e6dcb8f86a224df276 (patch)
tree298dd34cc8139ff7f1abee2ff6e1a8d5c7e8bf2d /lib
parenta690ec082451ca0636fb45a0d9773a240ae30373 (diff)
parent9268c320bf6ea35696951875df518286dd79ad54 (diff)
downloadsqlalchemy-f24659b72bfb04d30c10e8e6dcb8f86a224df276.tar.gz
Merge "Add port comparison in __eq__() and __ne__() method to URL"
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/engine/url.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/url.py b/lib/sqlalchemy/engine/url.py
index 536e21c38..16b7c051a 100644
--- a/lib/sqlalchemy/engine/url.py
+++ b/lib/sqlalchemy/engine/url.py
@@ -120,8 +120,12 @@ class URL(object):
and self.host == other.host
and self.database == other.database
and self.query == other.query
+ and self.port == other.port
)
+ def __ne__(self, other):
+ return not self == other
+
@property
def password(self):
if self.password_original is None: