Show More
@@ -64,8 +64,12 b' def _hgextimport(importfunc, name, globa' | |||
|
64 | 64 | return importfunc(hgextname, globals, *args, **kwargs) |
|
65 | 65 | |
|
66 | 66 | class _demandmod(object): |
|
67 |
"""module demand-loader and proxy |
|
|
68 | def __init__(self, name, globals, locals, level=level): | |
|
67 | """module demand-loader and proxy | |
|
68 | ||
|
69 | Specify 1 as 'level' argument at construction, to import module | |
|
70 | relatively. | |
|
71 | """ | |
|
72 | def __init__(self, name, globals, locals, level): | |
|
69 | 73 | if '.' in name: |
|
70 | 74 | head, rest = name.split('.', 1) |
|
71 | 75 | after = [rest] |
General Comments 0
You need to be logged in to leave comments.
Login now