comparison 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
comparison
equal deleted inserted replaced
30086:f3a1089654e3 30087:9b230a8e6008
58 #'urlreq', 58 #'urlreq',
59 'stringio', 59 'stringio',
60 'socketserver', 60 'socketserver',
61 'xmlrpclib', 61 'xmlrpclib',
62 ): 62 ):
63 globals()[attr] = getattr(pycompat, attr) 63 a = pycompat.sysstr(attr)
64 globals()[a] = getattr(pycompat, a)
64 65
65 # This line is to make pyflakes happy: 66 # This line is to make pyflakes happy:
66 urlreq = pycompat.urlreq 67 urlreq = pycompat.urlreq
67 68
68 if os.name == 'nt': 69 if os.name == 'nt':