Show More
@@ -37,17 +37,10 except ImportError: | |||
|
37 | 37 | |
|
38 | 38 | nothing = object() |
|
39 | 39 | |
|
40 | try: | |
|
41 | 40 |
|
|
42 | 41 |
|
|
43 | 42 |
|
|
44 | 43 |
|
|
45 | _origimport(builtins.__name__, {}, {}, None, level) | |
|
46 | except TypeError: # no level argument | |
|
47 | def _import(name, globals, locals, fromlist, level): | |
|
48 | "call _origimport with no level argument" | |
|
49 | return _origimport(name, globals, locals, fromlist) | |
|
50 | else: | |
|
51 | 44 |
|
|
52 | 45 | |
|
53 | 46 | def _hgextimport(importfunc, name, globals, *args): |
General Comments 0
You need to be logged in to leave comments.
Login now