aboutsummaryrefslogtreecommitdiffstats
path: root/plasma/datasource
diff options
context:
space:
mode:
Diffstat (limited to 'plasma/datasource')
-rw-r--r--plasma/datasource/contents/code/main.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/plasma/datasource/contents/code/main.py b/plasma/datasource/contents/code/main.py
index 8d9a8a2..2e0c115 100644
--- a/plasma/datasource/contents/code/main.py
+++ b/plasma/datasource/contents/code/main.py
@@ -30,9 +30,9 @@ class NetMonitorDataEngine(plasmascript.DataEngine):
self.ifaces = self.monitor.readnet()
self.enabled_ifaces = []
- self.wireless_ifaces = filter(self.monitor.has_wireless, self.ifaces.keys())
+ self.wireless_ifaces = list(filter(self.monitor.has_wireless, list(self.ifaces.keys())))
- sorted_ifaces = self.ifaces.keys()
+ sorted_ifaces = list(self.ifaces.keys())
sorted_ifaces.sort()
net=self.monitor.readnet()
@@ -62,8 +62,8 @@ class NetMonitorDataEngine(plasmascript.DataEngine):
def sources(self):
"""List of provided sources"""
- sources = self.ifaces.keys()
- print sources
+ sources = list(self.ifaces.keys())
+ print(sources)
return sources
def sourceRequestEvent(self, name):
@@ -73,7 +73,7 @@ class NetMonitorDataEngine(plasmascript.DataEngine):
def updateSourceEvent(self, name):
"""Returns monitoring data"""
- print "Getting info for %s " % name
+ print("Getting info for %s " % name)
net=self.monitor.readnet()
interval = 1 # update interval
wifi_stats = self.monitor.wireless_stats()