From a328f835b005c8638014a5df5d9286fe376345ec Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Fri, 24 May 2024 09:54:37 -0600 Subject: [PATCH] Fix SyntaxWarning: invalid escape sequence Loading azure-devops/azext_devops/devops_sdk/*/feed/models.py with Python 3.12 produces the following warnings: /path/to/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py:101: SyntaxWarning: invalid escape sequence '\,' """FeedCore. /path/to/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py:209: SyntaxWarning: invalid escape sequence '\,' """FeedUpdate. /path/to/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py:985: SyntaxWarning: invalid escape sequence '\,' """Feed. This occurs due to the presence of the invalid escape sequence `\,` in docstrings for FeedCore, FeedUpdate, and Feed, which produces a SyntaxWarning in Python 3.12 as a result of . Signed-off-by: Kevin Locke --- azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py | 6 +++--- azure-devops/azext_devops/devops_sdk/v5_1/feed/models.py | 6 +++--- azure-devops/azext_devops/devops_sdk/v6_0/feed/models.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py b/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py index 00f92408..c024fd1d 100644 --- a/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py +++ b/azure-devops/azext_devops/devops_sdk/v5_0/feed/models.py @@ -112,7 +112,7 @@ class FeedCore(Model): :type id: str :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool @@ -220,7 +220,7 @@ class FeedUpdate(Model): :type hide_deleted_package_versions: bool :param id: A GUID that uniquely identifies this feed. :type id: str - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool @@ -996,7 +996,7 @@ class Feed(FeedCore): :type id: str :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool diff --git a/azure-devops/azext_devops/devops_sdk/v5_1/feed/models.py b/azure-devops/azext_devops/devops_sdk/v5_1/feed/models.py index 8b80662c..d555787b 100644 --- a/azure-devops/azext_devops/devops_sdk/v5_1/feed/models.py +++ b/azure-devops/azext_devops/devops_sdk/v5_1/feed/models.py @@ -113,7 +113,7 @@ class FeedCore(Model): :type id: str :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param project: The project that this feed is associated with. :type project: :class:`ProjectReference ` @@ -232,7 +232,7 @@ class FeedUpdate(Model): :type hide_deleted_package_versions: bool :param id: A GUID that uniquely identifies this feed. :type id: str - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool @@ -1061,7 +1061,7 @@ class Feed(FeedCore): :type id: str :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param project: The project that this feed is associated with. :type project: :class:`ProjectReference ` diff --git a/azure-devops/azext_devops/devops_sdk/v6_0/feed/models.py b/azure-devops/azext_devops/devops_sdk/v6_0/feed/models.py index e0265210..8856b1e1 100644 --- a/azure-devops/azext_devops/devops_sdk/v6_0/feed/models.py +++ b/azure-devops/azext_devops/devops_sdk/v6_0/feed/models.py @@ -113,7 +113,7 @@ class FeedCore(Model): :type id: str :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param project: The project that this feed is associated with. :type project: :class:`ProjectReference ` @@ -236,7 +236,7 @@ class FeedUpdate(Model): :type hide_deleted_package_versions: bool :param id: A GUID that uniquely identifies this feed. :type id: str - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool @@ -1092,7 +1092,7 @@ class Feed(FeedCore): :type id: str :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str :param project: The project that this feed is associated with. :type project: :class:`ProjectReference `