Skip to content

[communication] SyntaxWarning: "invalid escape sequence" #9449

@BlackMercy

Description

@BlackMercy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botCommunicationLabel for AzureCommunicationServicesService AttentionThis issue is responsible by Azure service team.bugThis 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions