(self, **options)
return self.backend.generate_sources_list(**options)
Generate the contents of ``/etc/apt/sources.list``.

        If no `mirror_url` keyword argument is given then :attr:`stable_mirror`
        is used as a default.

        Please refer to the documentation of the Debian
        (:func:`apt_smart.backends.debian.generate_sources_list()`)
        and Ubuntu (:func:`apt_smart.backends.ubuntu.generate_sources_list()`)
        backend implementations of this method for details on argument handling
        and the return value.
Generate the contents of ``/etc/apt/sources.list``.
Generate the contents of / etc / apt / sources . list .
def generate_sources_list(self, **options):
        """
        Generate the contents of ``/etc/apt/sources.list``.

        If no `mirror_url` keyword argument is given then :attr:`stable_mirror`
        is used as a default.

        Please refer to the documentation of the Debian
        (:func:`apt_smart.backends.debian.generate_sources_list()`)
        and Ubuntu (:func:`apt_smart.backends.ubuntu.generate_sources_list()`)
        backend implementations of this method for details on argument handling
        and the return value.
        """
        if options.get('mirror_url') is None:
            options['mirror_url'] = self.stable_mirror
        options.setdefault('codename', self.distribution_codename)
        return self.backend.generate_sources_list(**options)
def generate_sources_list ( self , * * options ) : if options . get ( 'mirror_url' ) is None : options [ 'mirror_url' ] = self . stable_mirror options . setdefault ( 'codename' , self . distribution_codename ) return self . backend . generate_sources_list ( * * options )