##// END OF EJS Templates
demandimport: omit default value of "level" at construction of _demandmod...
FUJIWARA Katsunori -
r29737:ae9a4d6a default
parent child Browse files
Show More
@@ -64,8 +64,12 b' def _hgextimport(importfunc, name, globa'
64 return importfunc(hgextname, globals, *args, **kwargs)
64 return importfunc(hgextname, globals, *args, **kwargs)
65
65
66 class _demandmod(object):
66 class _demandmod(object):
67 """module demand-loader and proxy"""
67 """module demand-loader and proxy
68 def __init__(self, name, globals, locals, level=level):
68
69 Specify 1 as 'level' argument at construction, to import module
70 relatively.
71 """
72 def __init__(self, name, globals, locals, level):
69 if '.' in name:
73 if '.' in name:
70 head, rest = name.split('.', 1)
74 head, rest = name.split('.', 1)
71 after = [rest]
75 after = [rest]
General Comments 0
You need to be logged in to leave comments. Login now