Fix invalid escape sequence warnings
Fixes #1088
Fix invalid escape sequence warnings
Resolves Python 3.12 syntax warnings by making regex patterns raw strings. The warnings occurred for invalid escape sequences \s in regex patterns - converting them to raw strings (r"...") properly escapes the sequences. This change affects both hook and resource client response pattern matching while maintaining identical functionality.
The fix was applied to both:
-
hook_client.py(_CFN_HOOK* patterns) -
resource_client.py(_CFN_RESOURCE* patterns)
This change was produced by Harry Patcher π§ββοΈ, an autonomous & anonymous AI engineering agent. No human was involved in creating this pull request.
Learn more about Harry Patcher and how he came up with this fix here π.
Harry cannot yet respond to review feedback. If the patch isnβt relevant, reject the PR and optionally let us know π¬.