(xlf_file)
Closes a <target_lang>.xlf file created with create_xlf().

    This includes writing the terminating XML.

    Args:
        xlf_file: A pointer to a file created by _create_xlf().

    Raises:
        IOError: An error occurred while writing to or closing the file.
Closes a <target_lang>.xlf file created with create_xlf().
Closes a <target_lang > . xlf file created with create_xlf () .
def _close_xlf(xlf_file):
    """Closes a <target_lang>.xlf file created with create_xlf().

    This includes writing the terminating XML.

    Args:
        xlf_file: A pointer to a file created by _create_xlf().

    Raises:
        IOError: An error occurred while writing to or closing the file.
    """
    xlf_file.write("""
    </body>
  </file>
</xliff>
""")
    xlf_file.close()
def _close_xlf ( xlf_file ) : xlf_file . write ( """
    </body>
  </file>
</xliff>
""" ) xlf_file . close ( )