From dfaa8c9903bc19f3b01426de87052505c2f6fc4e Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 4 Jan 2022 23:56:30 +0100 Subject: Use raw string for regex pattern Signed-off-by: Olivier Gayot --- brightness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'brightness.py') diff --git a/brightness.py b/brightness.py index a88e2f8..9427ae9 100755 --- a/brightness.py +++ b/brightness.py @@ -66,7 +66,7 @@ def set_current_brightness(value): (e.g. +10%). ''' - matches = re.fullmatch('([+-])?(\d+)(%)?', value) + matches = re.fullmatch(r'([+-])?(\d+)(%)?', value) if matches is None: raise ValueError() -- cgit v1.2.3