Command system fix (python2 - > python3)
This commit is contained in:
parent
ddbac25e19
commit
33014bfd81
|
@ -64,7 +64,7 @@ class Execute(CommandContainer):
|
||||||
@classmethod
|
@classmethod
|
||||||
def monitor(cls, processor, popen):
|
def monitor(cls, processor, popen):
|
||||||
poller = cls.poller(processor, popen)
|
poller = cls.poller(processor, popen)
|
||||||
GObject.timeout_add(cls.POLL_INTERVAL, poller.next)
|
GObject.timeout_add(cls.POLL_INTERVAL, next, poller)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poller(cls, processor, popen):
|
def poller(cls, processor, popen):
|
||||||
|
@ -101,7 +101,7 @@ class Execute(CommandContainer):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def clean(text):
|
def clean(text):
|
||||||
strip = chr(10) + chr(32)
|
strip = chr(10) + chr(32)
|
||||||
return text.strip(strip)
|
return text.decode().strip(strip)
|
||||||
|
|
||||||
class Show(Execute):
|
class Show(Execute):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue