!61 [sync] PR-60: modify HOST_PORT_PAT in backport-fixed-issue-with-port-0-returning-None.patch

From: @openeuler-sync-bot 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2023-01-30 09:41:11 +00:00 committed by Gitee
commit bbc7a59768
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 10 additions and 4 deletions

View File

@ -21,7 +21,7 @@ index 6793de3..701ad75 100644
ZONE_ID_RE = re.compile("(" + ZONE_ID_PAT + r")\]$")
-_HOST_PORT_PAT = ("^(%s|%s|%s)(?::0*([0-9]{0,5}))?$") % (
+_HOST_PORT_PAT = ("^(%s|%s|%s)(?::0*?(|0|[1-9][0-9]{0,5}))?$") % (
+_HOST_PORT_PAT = ("^(%s|%s|%s)(?::0*?(|0|[1-9][0-9]{0,4}))?$") % (
REG_NAME_PAT,
IPV4_PAT,
IPV6_ADDRZ_PAT,
@ -44,4 +44,4 @@ index 165a331..c8729e8 100644
U = Url("http", host="google.com")
assert str(U) == U.url
--
2.27.0
2.27.0

View File

@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 1.25.9
Release: 6
Release: 7
Summary: Sanity-friendly HTTP client for Python
License: MIT
URL: https://urllib3.readthedocs.io
@ -119,11 +119,17 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib} %{__python3} -m pyt
%{python3_sitelib}/urllib3-*.egg-info
%changelog
* Thu Jan 19 2023 chenhaixing <chenhaixing@huawei.com> - 1.25.9-7
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:modify HOST_PORT_PAT in backport-fixed-issue-with-port-0-returning-None.patch
* Mon Jan 16 2023 chenhaixing <chenhaixing@huawei.com> - 1.25.9-6
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:backport some patches
- DESC:fix parse port error and add server_hostname to SSL_KEYWORDS
* Thu Jan 5 2023 chenhaixing <chenhaixing@huawei.com> - 1.25.9-5
- Type:bugfix