Commit 27c87e55 authored by Nathaniel Case's avatar Nathaniel Case

More explicit str decoding

parent c239d62c
...@@ -82,7 +82,8 @@ class Process(pyrasite.PyrasiteIPC, GObject.GObject): ...@@ -82,7 +82,8 @@ class Process(pyrasite.PyrasiteIPC, GObject.GObject):
@property @property
def title(self): def title(self):
if not getattr(self, '_title', None): if not getattr(self, '_title', None):
self._title = run('ps --no-heading -o cmd= -p %d' % self.pid)[1] self._title = run('ps --no-heading -o cmd= -p %d' % self.pid)[1] \
.decode('utf-8')
return self._title return self._title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment