summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
authorJan T <keppinakki@gmail.com>2015-07-26 17:33:52 +0300
committerJan T <keppinakki@gmail.com>2015-07-26 17:33:52 +0300
commit3d06da182aa95a561159f42538fa4438604c0314 (patch)
tree1dee746c98d106d5af3cc041f50c957941b204b2 /py3status
parent8299290ce024cae2ece883e77f92ff0487380ef7 (diff)
Fixed issue where text replacement broke on python2.
Diffstat (limited to 'py3status')
-rw-r--r--py3status/modules/volume_status.py3
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