changeset 30570 | c4c51fd0e11d |
parent 30306 | 5581b294f3c6 |
child 30575 | 5ffbaba9acac |
--- a/mercurial/extensions.py Wed Nov 30 23:51:11 2016 +0530 +++ b/mercurial/extensions.py Thu Dec 01 13:12:04 2016 +0530 @@ -18,6 +18,7 @@ from . import ( cmdutil, error, + pycompat, util, ) @@ -74,7 +75,7 @@ def _importh(name): """import and return the <name> module""" - mod = __import__(name) + mod = __import__(pycompat.sysstr(name)) components = name.split('.') for comp in components[1:]: mod = getattr(mod, comp)