# HG changeset patch # User RĂ©mi Cardona # Date 1442852890 -7200 # Node ID c5bedfdd1b22ea9c5c235382c47bd1517c29585c # Parent 1d0b5aef7523aa21472112ed988583d3bc46854e [py3k] Don't encode URLs Python 3's urllib works with unicode objects. diff -r 1d0b5aef7523 -r c5bedfdd1b22 req.py --- a/req.py Mon Sep 21 18:04:22 2015 +0200 +++ b/req.py Mon Sep 21 18:28:10 2015 +0200 @@ -353,7 +353,7 @@ newparams may only be mono-valued. """ - if isinstance(url, unicode): + if PY2 and isinstance(url, unicode): url = url.encode(self.encoding) schema, netloc, path, query, fragment = urlsplit(url) query = parse_qs(query)