def get_defaults_file(*a, **kw):
    """Get a file object with YAML data of configuration defaults.

    Arguments are passed through to :func:`get_defaults_str`.
    """
    fd = StringIO()
    fd.write(get_defaults_str(*a, **kw))
    fd.seek(0)
    return fd