Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions/deviceicon/battery.py
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/deviceicon/battery.py')
-rw-r--r--extensions/deviceicon/battery.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/deviceicon/battery.py b/extensions/deviceicon/battery.py
index e295b3d..1b3a752 100644
--- a/extensions/deviceicon/battery.py
+++ b/extensions/deviceicon/battery.py
@@ -146,9 +146,8 @@ class BatteryPalette(Palette):
minutes_remaining = int(current_level / 0.59)
remaining_hourpart = minutes_remaining / 60
remaining_minpart = minutes_remaining % 60
- secondary_text = _('%(hour)d:%(min).2d remaining'
- % { 'hour': remaining_hourpart,
- 'min': remaining_minpart})
+ secondary_text = _('%(hour)d:%(min).2d remaining') % \
+ {'hour': remaining_hourpart, 'min': remaining_minpart}
else:
secondary_text = _('Charged')
self.set_content(progress_widget)