Skip to content

Commit b037f85

Browse files
committed
run pycharm cleanup
1 parent 2451337 commit b037f85

File tree

4 files changed

+66
-68
lines changed

4 files changed

+66
-68
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ coverage.xml
5353
docs/_build/
5454

5555
nohup.out
56+
.idea/

indicator-sysmonitor

+10-12
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ from preferences import Preferences
2424
from preferences import VERSION
2525
from sensors import SensorManager
2626

27-
2827
textdomain("indicator-sysmonitor")
2928
bindtextdomain("indicator-sysmonitor", "./lang")
3029

@@ -67,8 +66,8 @@ CPU {{cpu}} | MEM {{mem}} | root {{fs///}}
6766
fs_desc=_("Show available space in the file system."),
6867
example=_("Example:"))
6968

70-
class IndicatorSysmonitor(object):
7169

70+
class IndicatorSysmonitor(object):
7271
SENSORS_DISABLED = False
7372

7473
def __init__(self):
@@ -139,24 +138,24 @@ class IndicatorSysmonitor(object):
139138
def update(self, data):
140139
# data is the dict of all sensors and their values
141140
# { name, label }
142-
141+
143142
# look through data and find out if there are any icons to be set
144-
145-
143+
144+
146145
for sensor in data:
147146
test_str = data[sensor].lower()
148147
if "use_icon" in test_str:
149148
path = data[sensor].split(":")[1]
150-
print (path)
149+
print(path)
151150
self.ind.set_icon_full(path, "")
152151
# now strip the icon output from data so that it is not displayed
153-
152+
154153
remaining = test_str.split("use_icon")[0].strip()
155154
if not remaining:
156155
remaining = " "
157-
156+
158157
data[sensor] = remaining
159-
158+
160159
label = self.sensor_mgr.get_label(data)
161160

162161
self.ind.set_label(label, "")
@@ -168,7 +167,7 @@ class IndicatorSysmonitor(object):
168167
self.sensor_mgr.initiate_fetcher(self)
169168
self.update_indicator_guide()
170169

171-
#@staticmethod
170+
# @staticmethod
172171
def save_settings(self):
173172
self.sensor_mgr.save_settings()
174173

@@ -199,8 +198,7 @@ class IndicatorSysmonitor(object):
199198
self._preferences_dialog.destroy()
200199

201200
logging.info("Terminated")
202-
self.alive.clear() #DM: why bother with Event() ???
203-
201+
self.alive.clear() # DM: why bother with Event() ???
204202

205203
try:
206204
Gtk.main_quit()

preferences.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from sensors import SensorManager
2121
from sensors import ISMError
2222

23-
2423
VERSION = '0.8.0~development'
2524

2625

@@ -176,7 +175,7 @@ def _on_edit_sensor(self, evnt=None, blank=True):
176175
# new - who knows ... lets just comment this out
177176
# ctext = self.ind_parent.custom_entry.get_text()
178177

179-
#self.ind_parent.custom_entry.set_text(
178+
# self.ind_parent.custom_entry.set_text(
180179
# ctext.replace(name, newname))
181180

182181
except ISMError as ex:
@@ -325,8 +324,8 @@ def update_parent(self, evnt=None, data=None):
325324

326325
self.sensor_mgr.set_custom_text(custom_text)
327326
self.sensor_mgr.set_interval(interval)
328-
#settings["custom_text"] = custom_text
329-
#settings["interval"] = interval
327+
# settings["custom_text"] = custom_text
328+
# settings["interval"] = interval
330329
# TODO: on_startup
331330
self.ind_parent.update_indicator_guide()
332331

0 commit comments

Comments
 (0)