From f909d7edfc8cf9c3ec684c82719b8e14c771c134 Mon Sep 17 00:00:00 2001 From: chestm007 Date: Fri, 21 Dec 2018 01:32:29 +1100 Subject: [PATCH] use raw string (#682) Cpu usage color (just an updated #376 to fix failed test due to regex) --- i3pystatus/cpu_usage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/cpu_usage.py b/i3pystatus/cpu_usage.py index 689c52e..4d7c9f0 100644 --- a/i3pystatus/cpu_usage.py +++ b/i3pystatus/cpu_usage.py @@ -51,7 +51,7 @@ class CpuUsage(IntervalModule, ColorRangeModule): self.prev_busy = defaultdict(int) self.formatter = Formatter() - self.key = re.findall('usage_cpu\d+', self.format) + self.key = re.findall(r'usage_cpu\d+', self.format) if len(self.key) == 1: self.key = self.key[0] else: