Prefix regex strings with 'r'

This commit is contained in:
Eric Torres 2019-03-25 14:00:52 -07:00
parent af39e1d81e
commit 61250fed0d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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