New unittest checks noticed missing backslashes.
CNF_FIELD_OPTIONAL = set ([ "parent", "children", "comment", "number" ])
CNF_FIELD_KNOWN = CNF_FIELD_MANDATORY | CNF_FIELD_OPTIONAL
-grab_parent_pattern = re.compile(b"""
+grab_parent_pattern = re.compile(rb"""
^ # match from start
\s* # optional spaces
\d+ # line number
""",
re.VERBOSE)
-base_line_pattern = re.compile(b"""
+base_line_pattern = re.compile(rb"""
^ # match from start
\s* # optional spaces
(\d+) # line number
""",
re.VERBOSE)
-child_line_pattern = re.compile(b"""
+child_line_pattern = re.compile(rb"""
^ # match from start
\s* # optional spaces
(\d+) # line number
8 (1) EMAILFILTER_BAN_FILTERLIST_PREDEFINED_ID,0: "1"
"""
-demo_cnf_escaped_quotes = """
+demo_cnf_escaped_quotes = r"""
1 HERE_BE_QUOTES,0: "\""
2 HERE_BE_QUOTES,1: "foo\"bar\"\"\"baz"
3 HERE_BE_QUOTES,2: "unquo\\\"table"