Fix bad-whitespace errors found by pylint

This commit is contained in:
Frederic Junod 2017-10-13 17:06:18 +02:00
parent 7af57c7fc4
commit 57204a215e
23 changed files with 66 additions and 66 deletions

View file

@ -11,14 +11,14 @@ import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self,engine,config):
super(Module,self).__init__(engine,config,bumblebee.output.Widget(full_text=self.utilization))
def __init__(self, engine, config):
super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.utilization))
self._utilization = "Not found: 0 0/0"
def utilization(self,widget):
def utilization(self, widget):
return self._utilization
def update(self,widgets):
def update(self, widgets):
sp = subprocess.Popen(['nvidia-smi', '-q'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out_str = sp.communicate()
out_list = out_str[0].decode("utf-8").split('\n')
@ -43,4 +43,4 @@ class Module(bumblebee.engine.Module):
name = val
except:
title = item.strip()
self._utilization = u"%s: %s°C %s/%s"%(name,temp,usedMem,totalMem)
self._utilization = u"%s: %s°C %s/%s"%(name, temp, usedMem, totalMem)