100
96
def timed_import(name, globals, locals, fromlist):
101
97
"""Wrap around standard importer to log import time"""
104
return _real_import(name, globals, locals, fromlist)
106
99
scope_name = globals.get('__name__', None)
108
101
scope_name = globals.get('__file__', None)