diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-11-17 15:51:19 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-11-19 14:55:14 -0800 |
commit | 526475596777391ff0665982115458f225c86d19 (patch) | |
tree | 0d3d0a6683b1f0987ac6dae68bd32582e8b39a86 | |
parent | 68bb2a00e56fda04228c13cc2bea90b71002c527 (diff) | |
download | fatcat-526475596777391ff0665982115458f225c86d19.tar.gz fatcat-526475596777391ff0665982115458f225c86d19.zip |
python API client: resolve warning about '\d' in string
-rw-r--r-- | python_openapi_client/fatcat_openapi_client/api/default_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python_openapi_client/fatcat_openapi_client/api/default_api.py b/python_openapi_client/fatcat_openapi_client/api/default_api.py index eea7e2a0..152b9260 100644 --- a/python_openapi_client/fatcat_openapi_client/api/default_api.py +++ b/python_openapi_client/fatcat_openapi_client/api/default_api.py @@ -9527,7 +9527,7 @@ class DefaultApi(object): len(local_var_params['issnl']) < 9): raise ApiValueError("Invalid value for parameter `issnl` when calling `lookup_container`, length must be greater than or equal to `9`") # noqa: E501 if 'issnl' in local_var_params and not re.search(r'\d{4}-\d{3}[0-9X]', local_var_params['issnl']): # noqa: E501 - raise ApiValueError("Invalid value for parameter `issnl` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`") # noqa: E501 + raise ApiValueError(r"Invalid value for parameter `issnl` when calling `lookup_container`, must conform to the pattern `/\d{4}-\d{3}[0-9X]/`") # noqa: E501 collection_formats = {} path_params = {} @@ -9649,7 +9649,7 @@ class DefaultApi(object): len(local_var_params['orcid']) < 19): raise ApiValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, length must be greater than or equal to `19`") # noqa: E501 if 'orcid' in local_var_params and not re.search(r'\d{4}-\d{4}-\d{4}-\d{3}[\dX]', local_var_params['orcid']): # noqa: E501 - raise ApiValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, must conform to the pattern `/\d{4}-\d{4}-\d{4}-\d{3}[\dX]/`") # noqa: E501 + raise ApiValueError(r"Invalid value for parameter `orcid` when calling `lookup_creator`, must conform to the pattern `/\d{4}-\d{4}-\d{4}-\d{3}[\dX]/`") # noqa: E501 collection_formats = {} path_params = {} |