def METHOD_NAME(pf):
    """convert a properties file back to a pseudo-properties .it file"""
    for unit in pf.units:
        for comment in unit.comments:
            if (
                comment.startswith("# converted from")
                and "pseudo-properties" in comment
            ):
                pass
            elif comment.startswith("# section: "):
                yield comment.replace("# section: ", "", 1) + "\n"
            else:
                yield comment.replace("#", ";", 1) + "\n"
        if unit.isblank():
            yield ""
        else:
            definition = f"{unit.name}={unit.value}\n"
            yield definition