From a8d1254e067a60d61df8a5c704d3ced57388441c Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Tue, 1 Dec 2020 15:58:55 +0100 Subject: [PATCH] [modules/nic] Make regex for SSID a raw string --- bumblebee_status/modules/core/nic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee_status/modules/core/nic.py b/bumblebee_status/modules/core/nic.py index 70ea1cf..7dde2f0 100644 --- a/bumblebee_status/modules/core/nic.py +++ b/bumblebee_status/modules/core/nic.py @@ -139,7 +139,7 @@ class Module(core.module.Module): iw_info = util.cli.execute("{} dev {} info".format(self.iw, intf)) for line in iw_info.split("\n"): - match = re.match("^\s+ssid\s(.+)$", line) + match = re.match(r"^\s+ssid\s(.+)$", line) if match: return match.group(1)