

def run_command_foreground(*argv, **kwargs):
    if VERBOSE:
        print(datetime.datetime.now(), 'Running:', ' '.join(argv))
    if (len(argv) == 1):
        if ((sys.version_info < (3,)) and isinstance(argv[0], unicode)):
            argv = shlex.split(argv[0].encode('utf-8'))
        else:
            argv = shlex.split(str(argv[0]))
    subprocess.call(argv)

dataset/ETHPy150Open openstack-infra/git-restack/git_restack/cmd.py run_command_foreground/original