aboutsummaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-09-12 20:52:51 +0200
committerPapoteur <papoteur@mageialinux-online.org>2015-09-12 20:52:51 +0200
commit7dc6f893276fd4f3452b9524459bf7f58c564936 (patch)
tree0d74e80c41e8e45e959e12a5028e68d4247e23ea /src/monitor.py
parent2857e3c4740c5bb6bbf0556fd60858c8637f7079 (diff)
downloadnet_monitor-7dc6f893276fd4f3452b9524459bf7f58c564936.tar
net_monitor-7dc6f893276fd4f3452b9524459bf7f58c564936.tar.gz
net_monitor-7dc6f893276fd4f3452b9524459bf7f58c564936.tar.bz2
net_monitor-7dc6f893276fd4f3452b9524459bf7f58c564936.tar.xz
net_monitor-7dc6f893276fd4f3452b9524459bf7f58c564936.zip
Manual adaptations for Python 3
Diffstat (limited to 'src/monitor.py')
-rw-r--r--src/monitor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py
index 3eede34..2bd72e6 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -16,7 +16,7 @@ import _native
# localization
import gettext
try:
- gettext.install("net_monitor", str=1)
+ gettext.install("net_monitor")
except IOError:
_ = str
@@ -160,7 +160,7 @@ class Monitor:
"""Check if device is wireless and get its details if necessary"""
try:
stats = {}
- if not os.path.isfile("/proc/net/wireless"):
+ if not os.path.isfile("/proc/net/wireless"):
return stats
with open("/proc/net/wireless") as fd:
ifaces = fd.readlines()[2:]