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