Skip to content

Commit a70f1b1

Browse files
fix more warnings
1 parent a048e80 commit a70f1b1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Evtx/Evtx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def _load_xml(self):
274274
"""
275275
if self._xml is not None:
276276
return
277-
matcher = "\[(?:Normal|Conditional) Substitution\(index=(\d+), type=\d+\)\]"
277+
matcher = r"\[(?:Normal|Conditional) Substitution\(index=(\d+), type=\d+\)\]"
278278
self._xml = re.sub(
279279
matcher, "{\\1:}", self._template_node.template_format().replace("{", "{{").replace("}", "}}")
280280
)

Evtx/Views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def escape_value(s):
7474

7575
# ref: https://www.w3.org/TR/xml/#NT-NameStartChar
7676
# but we are going to require a even stricter subset.
77-
NAME_PATTERN = re.compile("[a-zA-Z_][a-zA-Z_\-]*")
77+
NAME_PATTERN = re.compile(r"[a-zA-Z_][a-zA-Z_\-]*")
7878

7979

8080
def validate_name(s):

0 commit comments

Comments
 (0)