diff options
author | Richard Boß <richboss@gmail.de> | 2016-10-24 20:38:37 +0200 |
---|---|---|
committer | Richard Boß <richboss@gmail.de> | 2016-10-24 20:44:48 +0200 |
commit | 28c03b794fdfcc5f0129910d834188324a18d1fe (patch) | |
tree | 2a7f853c05f95ed6653211622531dceb3d21d098 /ranger | |
parent | 041856327c0d9b1fe3f26c5447995fda477c657f (diff) | |
download | ranger-28c03b794fdfcc5f0129910d834188324a18d1fe.tar.gz |
fix issue #679: Statusbar percentage crashes on python 2.6.6
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 0828c372..0ac62d86 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -290,7 +290,7 @@ class StatusBar(Widget): elif pos >= max_pos: right.add('Bot', base, 'bot') else: - right.add('{:0.0%}'.format(float(pos) / max_pos), + right.add('{0:0.0%}'.format(float(pos) / max_pos), base, 'percentage') else: right.add('0/0 All', base, 'all') |