Skip to content

Syntax warnings on Python 3.12 #1088

@siennathesane

Description

@siennathesane

When running cfn on Python 3.12, it throws this syntax error:

$ cfn --version
/opt/homebrew/Cellar/cloudformation-cli/0.2.38/libexec/lib/python3.12/site-packages/rpdk/core/contract/hook_client.py:451: SyntaxWarning: invalid escape sequence '\s'
  regex = "__CFN_HOOK_START_RESPONSE__([\s\S]*)__CFN_HOOK_END_RESPONSE__"  # noqa: W605,B950 # pylint: disable=C0301
/opt/homebrew/Cellar/cloudformation-cli/0.2.38/libexec/lib/python3.12/site-packages/rpdk/core/contract/resource_client.py:738: SyntaxWarning: invalid escape sequence '\s'
  regex = "__CFN_RESOURCE_START_RESPONSE__([\s\S]*)__CFN_RESOURCE_END_RESPONSE__"  # noqa: W605,B950 # pylint: disable=C0301
cfn 0.2.38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions