-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
CodeGenIssues that relate to code generationIssues that relate to code generationMgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.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.
Milestone
Description
- Package Version: master branch
- Operating System: Linux
- Python Version: 3.7/3.8
Describe the bug
DeprecationWarning are produced over invalid escape sequences
To Reproduce
find . -iname '*.py' | xargs -P 4 -I{} python3 -Wall -m py_compile {}
./sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/servicebusmanagementservice.py:51: DeprecationWarning: invalid escape sequence \m
'''
./sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/servicemanagementservice.py:73: DeprecationWarning: invalid escape sequence \m
'''
./sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/sqldatabasemanagementservice.py:47: DeprecationWarning: invalid escape sequence \m
'''
./sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/websitemanagementservice.py:47: DeprecationWarning: invalid escape sequence \m
'''
./sdk/core/azure-servicemanagement-legacy/azure/servicemanagement/schedulermanagementservice.py:51: DeprecationWarning: invalid escape sequence \m
'''
./sdk/batch/azure-batch/azure/batch/models/_models.py:4564: DeprecationWarning: invalid escape sequence \s
"""A Job Preparation Task to run before any Tasks of the Job on any given
./sdk/batch/azure-batch/azure/batch/models/_models_py3.py:4564: DeprecationWarning: invalid escape sequence \s
"""A Job Preparation Task to run before any Tasks of the Job on any given
./sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py:411: DeprecationWarning: invalid escape sequence \D
docker_file_path='src\Dockerfile',
./sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py:432: DeprecationWarning: invalid escape sequence \D
self.assertEqual(build_step.properties.docker_file_path, 'src\Dockerfile')
./sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py:451: DeprecationWarning: invalid escape sequence \D
self.assertEqual(build_step.properties.docker_file_path, 'src\Dockerfile')
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:63: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:130: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:224: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:312: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:398: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:543: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:612: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:675: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:738: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./sdk/cosmos/azure-mgmt-documentdb/azure/mgmt/documentdb/operations/database_accounts_operations.py:807: DeprecationWarning: invalid escape sequence \w
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\w\._\(\)]+$'),
./eng/versioning/version_shared.py:114: DeprecationWarning: invalid escape sequence \g
"\g<1>'{}'".format(classification),
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CodeGenIssues that relate to code generationIssues that relate to code generationMgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.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.