vprof/base_profiler.py
def get_run_object_type(run_object):
        """Determines run object type."""
        if isinstance(run_object, tuple):
            return 'function'
        run_object, _, _ = run_object.partition(' ')
        if os.path.isdir(run_object):
            return 'package'
        return 'module'
def get_run_object_type(run_object):
        if isinstance(run_object, tuple):
            return 'function'
        run_object, _, _ = run_object.partition(' ')
        if os.path.isdir(run_object):
            return 'package'
        return 'module'
def get_run_object_type ( run_object ) : if isinstance ( run_object , tuple ) : return 'function' run_object , _ , _ = run_object . partition ( ' ' ) if os . path . isdir ( run_object ) : return 'package' return 'module'
Determines run object type.
Determines run object type .