From 3031077713139ef4c576a122f5392c517724bf3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thayn=C3=A3=20B=2E=20Moretti?= Date: Mon, 13 May 2019 20:53:31 -0300 Subject: [PATCH] Add Python 2.7 support --- bumblebee/modules/network_traffic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/network_traffic.py b/bumblebee/modules/network_traffic.py index a107693..06e8f73 100644 --- a/bumblebee/modules/network_traffic.py +++ b/bumblebee/modules/network_traffic.py @@ -41,7 +41,7 @@ class Module(bumblebee.engine.Module): )) -class BandwidthInfo: +class BandwidthInfo(object): def __init__(self): io_counters = self.io_counters() self.network = io_counters[self.default_network_adapter()] @@ -64,7 +64,7 @@ class BandwidthInfo: return psutil.net_io_counters(pernic=True) -class TrafficWidget: +class TrafficWidget(object): def __new__(self, text, icon): widget = bumblebee.output.Widget() widget.set('theme.minwidth', '00000000KiB/s')