Replaced references to netifaces-py3 with netifaces.

This commit is contained in:
Alastair Houghton 2014-05-10 12:11:22 +01:00
parent f488a71d82
commit 8103cf35a1
4 changed files with 8 additions and 9 deletions

View File

@ -188,7 +188,7 @@ example):
# If it's down just the interface name (eth0) will be displayed in red # If it's down just the interface name (eth0) will be displayed in red
# (defaults of format_down and color_down) # (defaults of format_down and color_down)
# #
# Note: the network module requires PyPI package netifaces-py3 # Note: the network module requires PyPI package netifaces
status.register("network", status.register("network",
interface="eth0", interface="eth0",
format_up="{v4cidr}",) format_up="{v4cidr}",)
@ -196,7 +196,7 @@ example):
# Has all the options of the normal network and adds some wireless specific things # Has all the options of the normal network and adds some wireless specific things
# like quality and network names. # like quality and network names.
# #
# Note: requires both netifaces-py3 and basiciw # Note: requires both netifaces and basiciw
status.register("wireless", status.register("wireless",
interface="wlan0", interface="wlan0",
format_up="{essid} {quality:03.0f}%",) format_up="{essid} {quality:03.0f}%",)
@ -684,7 +684,7 @@ network
Display network information about a interface. Display network information about a interface.
Requires the PyPI package `netifaces-py3`. Requires the PyPI package `netifaces`.
Available formatters: Available formatters:
@ -911,7 +911,7 @@ wireless
Display network information about a interface. Display network information about a interface.
Requires the PyPI packages `netifaces-py3` and `basiciw`. Requires the PyPI packages `netifaces` and `basiciw`.
This is based on the network module, so all options and formatters are This is based on the network module, so all options and formatters are
the same, except for these additional formatters and that detached_down doesn't work. the same, except for these additional formatters and that detached_down doesn't work.

View File

@ -188,7 +188,7 @@ example):
# If it's down just the interface name (eth0) will be displayed in red # If it's down just the interface name (eth0) will be displayed in red
# (defaults of format_down and color_down) # (defaults of format_down and color_down)
# #
# Note: the network module requires PyPI package netifaces-py3 # Note: the network module requires PyPI package netifaces
status.register("network", status.register("network",
interface="eth0", interface="eth0",
format_up="{v4cidr}",) format_up="{v4cidr}",)
@ -196,7 +196,7 @@ example):
# Has all the options of the normal network and adds some wireless specific things # Has all the options of the normal network and adds some wireless specific things
# like quality and network names. # like quality and network names.
# #
# Note: requires both netifaces-py3 and basiciw # Note: requires both netifaces and basiciw
status.register("wireless", status.register("wireless",
interface="wlan0", interface="wlan0",
format_up="{essid} {quality:03.0f}%",) format_up="{essid} {quality:03.0f}%",)

View File

@ -1,7 +1,6 @@
from itertools import zip_longest from itertools import zip_longest
import subprocess import subprocess
# PyPI: netifaces-py3
import netifaces import netifaces
from i3pystatus import IntervalModule from i3pystatus import IntervalModule
@ -50,7 +49,7 @@ class Network(IntervalModule):
""" """
Display network information about a interface. Display network information about a interface.
Requires the PyPI package `netifaces-py3`. Requires the PyPI package `netifaces`.
Available formatters: Available formatters:

View File

@ -7,7 +7,7 @@ class Wireless(Network):
""" """
Display network information about a interface. Display network information about a interface.
Requires the PyPI packages `netifaces-py3` and `basiciw`. Requires the PyPI packages `netifaces` and `basiciw`.
This is based on the network module, so all options and formatters are This is based on the network module, so all options and formatters are
the same, except for these additional formatters and that detached_down doesn't work. the same, except for these additional formatters and that detached_down doesn't work.