diff options
| author | Jan T <keppinakki@gmail.com> | 2015-07-26 17:33:52 +0300 |
|---|---|---|
| committer | Jan T <keppinakki@gmail.com> | 2015-07-26 17:33:52 +0300 |
| commit | 3d06da182aa95a561159f42538fa4438604c0314 (patch) | |
| tree | 1dee746c98d106d5af3cc041f50c957941b204b2 | |
| parent | 8299290ce024cae2ece883e77f92ff0487380ef7 (diff) | |
Fixed issue where text replacement broke on python2.
| -rw-r--r-- | py3status/modules/volume_status.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py3status/modules/volume_status.py b/py3status/modules/volume_status.py index 2ef59fe..14a92a1 100644 --- a/py3status/modules/volume_status.py +++ b/py3status/modules/volume_status.py @@ -64,8 +64,7 @@ class Py3status: # return the format string formatted with available variables def _format_output(self, format, percentage): - text = format - text = text.replace("{percentage}", percentage) + text = format.format(percentage=percentage) return text # return the current channel volume value as a string |
