aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/monitor.py4
-rwxr-xr-xsrc/net_monitor2
2 files changed, 3 insertions, 3 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:]
diff --git a/src/net_monitor b/src/net_monitor
index 911b032..f5c809a 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -29,7 +29,7 @@ import textwrap
import gettext
from functools import reduce
try:
- gettext.install("net_monitor", str=1)
+ gettext.install("net_monitor")
except IOError:
_ = str