aws-cloudformation / aws-cloudformation/cloudformation-cli

Syntax warnings on Python 3.12

Open
#1,088 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
336
Forks
172
Avg merge
3d 5m
Merged PRs (30d)
3

Description

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

```sh
$ 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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.