(key_file)
Closes a key file created and opened with _create_key_file().

    Args:
        key_file: A file created by _create_key_file().

    Raises:
        IOError: An error occurred while writing to or closing the file.
Closes a key file created and opened with _create_key_file().
Closes a key file created and opened with _create_key_file () .
def _close_key_file(key_file):
    """Closes a key file created and opened with _create_key_file().

    Args:
        key_file: A file created by _create_key_file().

    Raises:
        IOError: An error occurred while writing to or closing the file.
    """
    key_file.write('\n}\n')
    key_file.close()
def _close_key_file ( key_file ) : key_file . write ( '\n}\n' ) key_file . close ( )