def without_defaults(cfg_ini, section):
    """

    :rtype: (str, str)
    :type cfg_ini: ConfigParser
    """
    defaults = cfg_ini.defaults()
    options = cfg_ini.items(section) if cfg_ini.has_section(section) else []
    return [(key, value) for key, value in options if key not in defaults.keys()]
def without_defaults ( cfg_ini , section ) : defaults = cfg_ini . defaults ( ) options = cfg_ini . items ( section ) if cfg_ini . has_section ( section ) else [ ] return [ ( key , value ) for key , value in options if key not in defaults . keys ( ) ]
:rtype: (str, str)
    :type cfg_ini: ConfigParser