(self, filename, extensions=True, pretty=False,
                  encoding='UTF-8', xml_declaration=True)
Generates an ATOM feed and write the resulting XML to a file.

        :param filename: Name of file to write or a file-like object or a URL.
        :param extensions: Enable or disable the loaded extensions for the xml
            generation (default: enabled).
        :param pretty: If the feed should be split into multiple lines and
            properly indented.
        :param encoding: Encoding used in the  XML file (default: UTF-8).
        :param xml_declaration: If an XML declaration should be added to the
            output (Default: enabled).
Generates an ATOM feed and write the resulting XML to a file.
Generates an ATOM feed and write the resulting XML to a file .
def atom_file(self, filename, extensions=True, pretty=False,
                  encoding='UTF-8', xml_declaration=True):
        '''Generates an ATOM feed and write the resulting XML to a file.

        :param filename: Name of file to write or a file-like object or a URL.
        :param extensions: Enable or disable the loaded extensions for the xml
            generation (default: enabled).
        :param pretty: If the feed should be split into multiple lines and
            properly indented.
        :param encoding: Encoding used in the  XML file (default: UTF-8).
        :param xml_declaration: If an XML declaration should be added to the
            output (Default: enabled).
        '''
        feed, doc = self._create_atom(extensions=extensions)
        doc.write(filename, pretty_print=pretty, encoding=encoding,
                  xml_declaration=xml_declaration)
def atom_file ( self , filename , extensions = True , pretty = False , encoding = 'UTF-8' , xml_declaration = True ) : feed , doc = self . _create_atom ( extensions = extensions ) doc . write ( filename , pretty_print = pretty , encoding = encoding , xml_declaration = xml_declaration )