Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 28882:800ec7c048b0
pycompat: add util.urlerr util.urlreq classes for py3 compat
python3 url.request and url.error are mapped as util.urlreq/util.urlerr
python2 equivalents from urllib/urllib2 are mapped according to the py3
hierarchy
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 07 Apr 2016 00:05:48 +0000 |
parents | 16255662446d |
children | 032c4c2f802a |
comparison
equal
deleted
inserted
replaced
28881:d9f7f590f1e3 | 28882:800ec7c048b0 |
---|---|
47 ) | 47 ) |
48 | 48 |
49 for attr in ( | 49 for attr in ( |
50 'empty', | 50 'empty', |
51 'queue', | 51 'queue', |
52 'urlerr', | |
53 'urlreq', | |
52 'stringio', | 54 'stringio', |
53 ): | 55 ): |
54 globals()[attr] = getattr(pycompat, attr) | 56 globals()[attr] = getattr(pycompat, attr) |
55 | 57 |
56 if os.name == 'nt': | 58 if os.name == 'nt': |