Put yaourt docs into code blocks; 80 char width.

This commit is contained in:
ncoop 2016-06-21 16:11:46 -07:00
parent 9d907732f1
commit f03926ed71

View File

@ -1,4 +1,3 @@
import re
from i3pystatus.core.command import run_through_shell from i3pystatus.core.command import run_through_shell
from i3pystatus.updates import Backend from i3pystatus.updates import Backend
@ -6,13 +5,19 @@ from i3pystatus.updates import Backend
class Yaourt(Backend): class Yaourt(Backend):
""" """
This module counts the available updates using yaourt. This module counts the available updates using yaourt.
By default it will only count aur packages. Thus it can be used with the pacman backend like this: By default it will only count aur packages. Thus it can be used with the
pacman backend like this:
.. code-block:: python
from i3pystatus.updates import pacman, yaourt from i3pystatus.updates import pacman, yaourt
status.register("updates", backends = [pacman.Pacman(), yaourt.Yaourt()]) status.register("updates", backends = \
[pacman.Pacman(), yaourt.Yaourt()])
If you want to count both pacman and aur packages with this module you can set the variable If you want to count both pacman and aur packages with this module you can
count_only_aur = False like this: set the variable count_only_aur = False like this:
.. code-block:: python
from i3pystatus.updates import yaourt from i3pystatus.updates import yaourt
status.register("updates", backends = [yaourt.Yaourt(False)]) status.register("updates", backends = [yaourt.Yaourt(False)])