cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

Fix invalid escape sequence warnings

Open harry-patcher opened this issue 7 months ago β€’ 0 comments

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 πŸ“¬.

harry-patcher avatar May 20 '25 21:05 harry-patcher