105
101
_real_import = __import__
107
def timed_import(name, globals=None, locals=None, fromlist=None, level=None):
103
def timed_import(name, globals=None, locals=None, fromlist=None, level=-1):
108
104
"""Wrap around standard importer to log import time"""
109
105
# normally there are 4, but if this is called as __import__ eg by
110
106
# /usr/lib/python2.6/email/__init__.py then there may be only one