def print_stats(similarity, find_copies, args):
    'Prints statistics about the change to the user.'
    env = GetNoGitPagerEnv()
    if ('GIT_EXTERNAL_DIFF' in env):
        del env['GIT_EXTERNAL_DIFF']
    if find_copies:
        similarity_options = ['--find-copies-harder', '-l100000', ('-C%s' % similarity)]
    else:
        similarity_options = [('-M%s' % similarity)]
    try:
        stdout = sys.stdout.fileno()
    except AttributeError:
        stdout = None
    return subprocess2.call(((['git', 'diff', '--no-ext-diff', '--stat'] + similarity_options) + args), stdout=stdout, env=env)
Prints statistics about the change to the user.
def print_stats(similarity, find_copies, args):
    
    env = GetNoGitPagerEnv()
    if ('GIT_EXTERNAL_DIFF' in env):
        del env['GIT_EXTERNAL_DIFF']
    if find_copies:
        similarity_options = ['--find-copies-harder', '-l100000', ('-C%s' % similarity)]
    else:
        similarity_options = [('-M%s' % similarity)]
    try:
        stdout = sys.stdout.fileno()
    except AttributeError:
        stdout = None
    return subprocess2.call(((['git', 'diff', '--no-ext-diff', '--stat'] + similarity_options) + args), stdout=stdout, env=env)