summaryrefslogtreecommitdiff
path: root/brightness.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2022-01-04 23:56:30 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2022-01-04 23:56:30 +0100
commitdfaa8c9903bc19f3b01426de87052505c2f6fc4e (patch)
treea275207188fd50e52b021181f50f1273b634e63e /brightness.py
parent1dc27b05863912170b7dc8f585023b3b99958a55 (diff)
Use raw string for regex patternHEADmaster
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'brightness.py')
-rwxr-xr-xbrightness.py2
1 files changed, 1 insertions, 1 deletions
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()