summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/engine')
-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: