diff 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
line wrap: on
line diff
--- a/mercurial/util.py	Sun Mar 20 16:49:56 2016 -0700
+++ b/mercurial/util.py	Thu Apr 07 00:05:48 2016 +0000
@@ -49,6 +49,8 @@
 for attr in (
     'empty',
     'queue',
+    'urlerr',
+    'urlreq',
     'stringio',
 ):
     globals()[attr] = getattr(pycompat, attr)