(cfg)
walks over a ConfigObj (INI file with comments) generating
    corresponding YAML output (including comments
walks over a ConfigObj (INI file with comments) generating
    corresponding YAML output (including comments
walks over a ConfigObj ( INI file with comments ) generating corresponding YAML output ( including comments
def configobj_walker(cfg):
    # type: (Any) -> Any
    """
    walks over a ConfigObj (INI file with comments) generating
    corresponding YAML output (including comments
    """
    from configobj import ConfigObj  # type: ignore

    assert isinstance(cfg, ConfigObj)
    for c in cfg.initial_comment:
        if c.strip():
            yield c
    for s in _walk_section(cfg):
        if s.strip():
            yield s
    for c in cfg.final_comment:
        if c.strip():
            yield c
def configobj_walker ( cfg ) : # type: (Any) -> Any from configobj import ConfigObj # type: ignore assert isinstance ( cfg , ConfigObj ) for c in cfg . initial_comment : if c . strip ( ) : yield c for s in _walk_section ( cfg ) : if s . strip ( ) : yield s for c in cfg . final_comment : if c . strip ( ) : yield c