##// END OF EJS Templates
extensions: fix lookup of hgext.foo modules
Matt Mackall -
r4560:3daed368 default
parent child Browse files
Show More
@@ -16,8 +16,8 b' def find(name):'
16 return _extensions[name]
16 return _extensions[name]
17 except KeyError:
17 except KeyError:
18 for k, v in _extensions.iteritems():
18 for k, v in _extensions.iteritems():
19 if k.endswith('.' + name) or k.endswith('/' + name) or v == name:
19 if k.endswith('.' + name) or k.endswith('/' + name):
20 return sys.modules[v]
20 return v
21 raise KeyError(name)
21 raise KeyError(name)
22
22
23 def load(ui, name, path):
23 def load(ui, name, path):
General Comments 0
You need to be logged in to leave comments. Login now