-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[communication] SyntaxWarning: "invalid escape sequence" #9449
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botCommunicationLabel for AzureCommunicationServicesLabel for AzureCommunicationServicesService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botCommunicationLabel for AzureCommunicationServicesLabel for AzureCommunicationServicesService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
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 sequencemessages when runningcommunicationextension commands.While functionality remains intact, these warnings clutter the output.
Actual Behavior
When running any
az communicationcommand, the following warnings are printed:(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
Additional context
No response