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)