def import_module(module):
    """Imports module with given dotted name.
    """
    try:
        module = sys.modules[module]
    except __HOLE__:
        __import__(module)
        module = sys.modules[module]
    return module
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/import_module