diff options
author | Yuri Baida <yuri.baida@gmail.com> | 2015-05-30 01:13:42 -0700 |
---|---|---|
committer | Yuri Baida <yuri.baida@gmail.com> | 2015-05-30 01:13:42 -0700 |
commit | e92b73d4ee44b0e5fe1478132d8feb1a8886279c (patch) | |
tree | c4d7c92f13294b62ea7f7646916972def0c357c0 | |
parent | 0766c80b9c02fdbad3203835ab850ad690f4c03b (diff) | |
download | sqlalchemy-pr/178.tar.gz |
Update url.pypr/178
Fix for situation when username or password is an integer number
-rw-r--r-- | lib/sqlalchemy/engine/url.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/url.py b/lib/sqlalchemy/engine/url.py index 32e3f8a6b..9ea611d8b 100644 --- a/lib/sqlalchemy/engine/url.py +++ b/lib/sqlalchemy/engine/url.py @@ -66,10 +66,10 @@ class URL(object): def __to_string__(self, hide_password=True): s = self.drivername + "://" if self.username is not None: - s += _rfc_1738_quote(self.username) + s += _rfc_1738_quote(str(self.username)) if self.password is not None: s += ':' + ('***' if hide_password - else _rfc_1738_quote(self.password)) + else _rfc_1738_quote(str(self.password))) s += "@" if self.host is not None: if ':' in self.host: |