diff options
| author | rixx <rixx-git@cutebit.de> | 2015-03-30 13:42:31 +0200 |
|---|---|---|
| committer | rixx <rixx-git@cutebit.de> | 2015-03-30 13:42:31 +0200 |
| commit | fe67b767bef6f307084b4a0993c5e84b26f5c487 (patch) | |
| tree | 2ae900c48e842dccf8bce0c9aa606154b80c1dc1 /py3status | |
| parent | a1c5c0ce1028c17e4e314fc5a980158a49d5ef65 (diff) | |
python3 compatibility
Diffstat (limited to 'py3status')
| -rw-r--r-- | py3status/modules/player_control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py3status/modules/player_control.py b/py3status/modules/player_control.py index ba8f37d..6144462 100644 --- a/py3status/modules/player_control.py +++ b/py3status/modules/player_control.py @@ -117,7 +117,7 @@ class Py3status: fn = os.path.join('/proc', pid, 'cmdline') try: with open(fn, 'rb') as f: - player_name = f.read().rstrip('\0') + player_name = f.read().decode().rstrip('\0') except: continue |
