<filename>git_subprocess/utils.py<gh_stars>0
import os


def silence(method, *args, **kwargs):
    with open(os.devnull, 'w') as f:
        kwargs['stdout'] = f
        return method(*args, **kwargs)
<filename>git_subprocess/utils.py<gh_stars>0
import os


def silence(method, *args, **kwargs):
    with open(os.devnull, 'w') as f:
        kwargs['stdout'] = f
        return method(*args, **kwargs)