Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 29431:80880ad3fccd
py3: conditionalize the urlparse import
The urlparse library is renamed to urllib.parse in python 3
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 27 Jun 2016 16:16:10 +0530 |
parents | 6d96658a22b0 |
children | 34b914ac573e |
comparison
equal
deleted
inserted
replaced
29430:72065b3b90a4 | 29431:80880ad3fccd |
---|---|
48 for attr in ( | 48 for attr in ( |
49 'empty', | 49 'empty', |
50 'pickle', | 50 'pickle', |
51 'queue', | 51 'queue', |
52 'urlerr', | 52 'urlerr', |
53 'urlparse', | |
53 # we do import urlreq, but we do it outside the loop | 54 # we do import urlreq, but we do it outside the loop |
54 #'urlreq', | 55 #'urlreq', |
55 'stringio', | 56 'stringio', |
56 ): | 57 ): |
57 globals()[attr] = getattr(pycompat, attr) | 58 globals()[attr] = getattr(pycompat, attr) |