Azure / Azure/azure-cli-extensions
[communication] SyntaxWarning: "invalid escape sequence"
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### Describe the bug
After updating to Azure CLI **2.80.0** (coming from 2.74.0 with clean install), I am seeing multiple `SyntaxWarning: invalid escape sequence` messages when running `communication` extension commands.
While functionality remains intact, these warnings clutter the output.
### Actual Behavior
When running any `az communication` command, the following warnings are printed:
```
.../azext_communication/aaz/latest/communication/_create.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_delete.py:52: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_link_notification_hub.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
```
(and similar warnings in _list_key.py, _regenerate_key.py, _show.py, etc.)
### Related command
az communication email domain sender-username create
az communication email list
### Errors
.../azext_communication/aaz/latest/communication/_create.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_delete.py:52: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_link_notification_hub.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
### Issue script & Debug output
N/A
### Expected behavior
No SyntaxWarnings
### Environment Summary
* **Azure CLI Core:** 2.80.0
* **Communication Extension:** 1.14.0
* **OS:** Windows 11
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.