From 5059898af2c012050fe2aabcce12dfe5f1078820 Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Mon, 4 Sep 2017 06:13:55 -0400 Subject: [PATCH] fix urllib.quote py2 to py3 --- lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index bc3a6d73d..504cad38a 100644 --- a/lib/util.py +++ b/lib/util.py @@ -602,7 +602,7 @@ def create_URI(addr, amount, message): if message: if six.PY2 and type(message) == unicode: message = message.encode('utf8') - query.append('message=%s'%urllib.quote(message)) + query.append('message=%s'%urllib.parse.quote(message)) p = urllib_parse.ParseResult(scheme='bitcoin', netloc='', path=addr, params='', query='&'.join(query), fragment='') return urllib_parse.urlunparse(p)