diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-06-01 18:22:49 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-06-01 18:22:49 +0000 |
commit | 8e949c2eb5c6eb1cf90cbef80a865709840e8150 (patch) | |
tree | 7cee0d133ef21911af029df428d2053ddefabeb0 /lib/sqlalchemy/engine/url.py | |
parent | 04c1d3f012b8e445c947e650d73ec44f207456c7 (diff) | |
download | sqlalchemy-8e949c2eb5c6eb1cf90cbef80a865709840e8150.tar.gz |
switched generator to list comprehension
Diffstat (limited to 'lib/sqlalchemy/engine/url.py')
-rw-r--r-- | lib/sqlalchemy/engine/url.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/url.py b/lib/sqlalchemy/engine/url.py index 5e04e1317..fbaf6c964 100644 --- a/lib/sqlalchemy/engine/url.py +++ b/lib/sqlalchemy/engine/url.py @@ -27,7 +27,7 @@ class URL(object): if len(self.query): keys = self.query.keys() keys.sort() - s += '?' + "&".join("%s=%s" % (k, self.query[k]) for k in keys) + s += '?' + "&".join(["%s=%s" % (k, self.query[k]) for k in keys]) return s def get_module(self): return getattr(__import__('sqlalchemy.databases.%s' % self.drivername).databases, self.drivername) |