Show More
@@ -49,12 +49,12 b' def _pythonhook(ui, repo, htype, hname, ' | |||
|
49 | 49 | modname = modfile |
|
50 | 50 | with demandimport.deactivated(): |
|
51 | 51 | try: |
|
52 | obj = __import__(modname) | |
|
52 | obj = __import__(pycompat.sysstr(modname)) | |
|
53 | 53 | except (ImportError, SyntaxError): |
|
54 | 54 | e1 = sys.exc_info() |
|
55 | 55 | try: |
|
56 | 56 | # extensions are loaded with hgext_ prefix |
|
57 | obj = __import__("hgext_%s" % modname) | |
|
57 | obj = __import__(r"hgext_%s" % pycompat.sysstr(modname)) | |
|
58 | 58 | except (ImportError, SyntaxError): |
|
59 | 59 | e2 = sys.exc_info() |
|
60 | 60 | if ui.tracebackflag: |
General Comments 0
You need to be logged in to leave comments.
Login now