From 308f7c2df0e54dc4cab69088b1d6c1f181400b8f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 28 May 2006 19:16:43 +0000 Subject: [PATCH] skips blank arguments --- lib/sqlalchemy/engine/url.py | 2 +- test/parseconnect.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/engine/url.py b/lib/sqlalchemy/engine/url.py index 548650322c..5242254e2b 100644 --- a/lib/sqlalchemy/engine/url.py +++ b/lib/sqlalchemy/engine/url.py @@ -37,7 +37,7 @@ class URL(object): sname = attribute_names.pop(0) if n is None: continue - if getattr(self, sname, None) is not None: + if getattr(self, sname, None): a[n] = getattr(self, sname) return a diff --git a/test/parseconnect.py b/test/parseconnect.py index 97061a6834..f53b7e3f7c 100644 --- a/test/parseconnect.py +++ b/test/parseconnect.py @@ -22,7 +22,7 @@ class ParseConnectTest(PersistTest): ): u = url.make_url(text) print u, text - print u.username, u.password, u.database + print "username=", u.username, "password=", u.password, "database=", u.database, "host=", u.host assert str(u) == text -- 2.47.2