]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
skips blank arguments
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 May 2006 19:16:43 +0000 (19:16 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 May 2006 19:16:43 +0000 (19:16 +0000)
lib/sqlalchemy/engine/url.py
test/parseconnect.py

index 548650322cea38a6a0942bdb60c8e1dbef5e0efe..5242254e2bdb1725120bcff665530ac199acb7ad 100644 (file)
@@ -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
     
index 97061a683430bd1f2a518eae1aeee65cd48cdf1e..f53b7e3f7cb3f2f62ee4cb565a42a785a03d9936 100644 (file)
@@ -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