Prefix regex strings with 'r'
This commit is contained in:
parent
af39e1d81e
commit
61250fed0d
2
ddusb.py
2
ddusb.py
@ -8,7 +8,7 @@ import re
|
||||
import subprocess
|
||||
|
||||
# ========== Constants ==========
|
||||
COMMENT_PATTERN = "^[#;]"
|
||||
COMMENT_PATTERN = r"^[#;]"
|
||||
EXCLUDE_FILE = "/etc/helper-scripts/ddusb-exclude.conf"
|
||||
|
||||
E_BLOCKDEVICE_ERROR = 1
|
||||
|
@ -33,7 +33,7 @@ from termcolor import colored
|
||||
FD_BIN = "/usr/bin/fd"
|
||||
FD_OPTS = ["--hidden"]
|
||||
# Matches 'y' or 'yes' only, ignoring case
|
||||
USER_RESPONSE_YES = "^[Yy]{1}([Ee]{1}[Ss]{1})?$"
|
||||
USER_RESPONSE_YES = r"^[Yy]{1}([Ee]{1}[Ss]{1})?$"
|
||||
|
||||
E_NO_RESULTS = 1
|
||||
E_USER_RESPONSE_NO = 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user