make_url in sqlalchemy.engine.url is not resilient to unicode values

Issue #188 resolved
Former user created an issue

The following patch fixes the problem:

Index: url.py

--- url.py (revision 1504) +++ url.py (working copy) @@ -42,7 +42,7 @@

def make_url(name_or_url): - if isinstance(name_or_url, str): + if isinstance(name_or_url, str) or isinstance(name_or_url, unicode): return _parse_rfc1738_args(name_or_url) else: return name_or_url

Comments (2)

  1. Log in to comment