예제 #1
0
def get_pofile_content(pofile: polib.POFile) -> str:
    """
    Return the content of the pofile object - a string
    that contains what would be in the po file on the disk
    if we saved it.
    """
    # This isn't really worth its own function, except that mocking
    # __unicode__ for tests is a pain, and it's easier to have this
    # function so we can just mock it.
    return pofile.__unicode__()