Skip to content

Fix invalid escape sequence warnings #1105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

harry-patcher
Copy link

@harry-patcher harry-patcher commented May 20, 2025

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 📬.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax warnings on Python 3.12
1 participant