From 28c03b794fdfcc5f0129910d834188324a18d1fe Mon Sep 17 00:00:00 2001 From: Richard Boß Date: Mon, 24 Oct 2016 20:38:37 +0200 Subject: fix issue #679: Statusbar percentage crashes on python 2.6.6 --- ranger/gui/widgets/statusbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit 1.4.1-2-gfad0