From d63896d465e75dadb50bd618f2f061f76c90dac1 Mon Sep 17 00:00:00 2001 From: enkore Date: Wed, 9 Oct 2013 09:15:24 +0200 Subject: [PATCH] Avoid non-ASCII chars --- i3pystatus/battery.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i3pystatus/battery.py b/i3pystatus/battery.py index 04fff39..ccb8b8a 100644 --- a/i3pystatus/battery.py +++ b/i3pystatus/battery.py @@ -40,12 +40,12 @@ class Battery: def __init__(self, batinfo): self.bat = batinfo - self.normalize_µ() + self.normalize_micro() - def normalize_µ(self): - for key, µvalue in self.bat.items(): + def normalize_micro(self): + for key, microvalue in self.bat.items(): if re.match(r"(VOLTAGE|CHARGE|CURRENT|POWER|ENERGY)_(NOW|FULL|MIN)(_DESIGN)?", key): - self.bat[key] = float(µvalue) / 1000000.0 + self.bat[key] = float(microvalue) / 1000000.0 def percentage(self, design=False): return self._percentage("_DESIGN" if design else "") * 100