diff --git a/import_profiler.py b/import_profiler.py index 39b4819..9fdbb1f 100644 --- a/import_profiler.py +++ b/import_profiler.py @@ -116,7 +116,7 @@ def __exit__(self, *a, **kw): self.disable() def _profiled_import(self, name, globals=None, locals=None, fromlist=None, - level=-1, *a, **kw): + level=0, *a, **kw): if globals is None: context_name = None else: