Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 30087:9b230a8e6008
util: ensure forwarded attrs are set in globals() as sysstr
Custom module importer strikes again.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 08 Oct 2016 08:36:39 -0400 |
parents | 81d38478fced |
children | 7356e6b1f5b8 |
line wrap: on
line diff
--- a/mercurial/util.py Sat Oct 08 08:35:43 2016 -0400 +++ b/mercurial/util.py Sat Oct 08 08:36:39 2016 -0400 @@ -60,7 +60,8 @@ 'socketserver', 'xmlrpclib', ): - globals()[attr] = getattr(pycompat, attr) + a = pycompat.sysstr(attr) + globals()[a] = getattr(pycompat, a) # This line is to make pyflakes happy: urlreq = pycompat.urlreq