# HG changeset patch # User Julien Cristau # Date 1443695547 -7200 # Node ID 3eb527ce5f0f50883fc55993a096552a2401a887 # Parent 4c48d3bab38c419158f1c8f00906f58c5e4b9cc1 [py3k] get urllib foo from six.moves diff -r 4c48d3bab38c -r 3eb527ce5f0f sobjects/cwxmlparser.py --- a/sobjects/cwxmlparser.py Thu Oct 01 12:15:14 2015 +0200 +++ b/sobjects/cwxmlparser.py Thu Oct 01 12:32:27 2015 +0200 @@ -35,7 +35,7 @@ import urllib from six import text_type -from six.moves.urllib.parse import urlparse, urlunparse, parse_qs +from six.moves.urllib.parse import urlparse, urlunparse, parse_qs, urlencode from logilab.common.date import todate, totime from logilab.common.textutils import splitstrip, text_to_dict @@ -250,8 +250,8 @@ if 'vid' not in params: params['vid'] = ['xml'] purl = list(purl) - purl[4] = urllib.urlencode(params, doseq=True) - return urlparse.urlunparse(purl) + purl[4] = urlencode(params, doseq=True) + return urlunparse(purl) return url def complete_url(self, url, etype=None, known_relations=None): @@ -279,7 +279,7 @@ continue relations.add('%s-%s' % (rtype, role)) purl = list(purl) - purl[4] = urllib.urlencode(params, doseq=True) + purl[4] = urlencode(params, doseq=True) return urlunparse(purl) def complete_item(self, item, rels):