Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-urllib3 for openSUSE:Factory 
checked in at 2023-01-23 18:30:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-urllib3 (Old)
 and      /work/SRC/openSUSE:Factory/.python-urllib3.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-urllib3"

Mon Jan 23 18:30:42 2023 rev:54 rq:1060116 version:1.26.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes    
2022-12-29 13:08:38.904769599 +0100
+++ /work/SRC/openSUSE:Factory/.python-urllib3.new.32243/python-urllib3.changes 
2023-01-23 18:30:43.591603911 +0100
@@ -1,0 +2,7 @@
+Sat Jan 21 09:59:43 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.26.14:
+  * Fixed parsing of port 0 (zero) returning None, instead of 0.
+  * Removed deprecated getheaders() calls in contrib module.
+
+-------------------------------------------------------------------

Old:
----
  urllib3-1.26.13.tar.gz

New:
----
  urllib3-1.26.14.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-urllib3.spec ++++++
--- /var/tmp/diff_new_pack.NmyGvz/_old  2023-01-23 18:30:45.899618156 +0100
+++ /var/tmp/diff_new_pack.NmyGvz/_new  2023-01-23 18:30:45.911618230 +0100
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@
 %bcond_with test
 %endif
 Name:           python-urllib3%{psuffix}
-Version:        1.26.13
+Version:        1.26.14
 Release:        0
 Summary:        HTTP library with thread-safe connection pooling, file post, 
and more
 License:        MIT

++++++ urllib3-1.26.13.tar.gz -> urllib3-1.26.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/CHANGES.rst 
new/urllib3-1.26.14/CHANGES.rst
--- old/urllib3-1.26.13/CHANGES.rst     2022-11-23 23:22:44.000000000 +0100
+++ new/urllib3-1.26.14/CHANGES.rst     2023-01-11 14:00:25.000000000 +0100
@@ -1,6 +1,12 @@
 Changes
 =======
 
+1.26.14 (2023-01-11)
+--------------------
+
+* Fixed parsing of port 0 (zero) returning None, instead of 0. (`#2850 
<https://github.com/urllib3/urllib3/issues/2850>`__)
+* Removed deprecated getheaders() calls in contrib module.
+
 1.26.13 (2022-11-23)
 --------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/PKG-INFO new/urllib3-1.26.14/PKG-INFO
--- old/urllib3-1.26.13/PKG-INFO        2022-11-23 23:22:58.712564000 +0100
+++ new/urllib3-1.26.14/PKG-INFO        2023-01-11 14:00:39.975178700 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: urllib3
-Version: 1.26.13
+Version: 1.26.14
 Summary: HTTP library with thread-safe connection pooling, file post, and more.
 Home-page: https://urllib3.readthedocs.io/
 Author: Andrey Petrov
@@ -144,6 +144,12 @@
 Changes
 =======
 
+1.26.14 (2023-01-11)
+--------------------
+
+* Fixed parsing of port 0 (zero) returning None, instead of 0. (`#2850 
<https://github.com/urllib3/urllib3/issues/2850>`__)
+* Removed deprecated getheaders() calls in contrib module.
+
 1.26.13 (2022-11-23)
 --------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/dev-requirements.txt 
new/urllib3-1.26.14/dev-requirements.txt
--- old/urllib3-1.26.13/dev-requirements.txt    2022-11-23 23:22:44.000000000 
+0100
+++ new/urllib3-1.26.14/dev-requirements.txt    2023-01-11 14:00:25.000000000 
+0100
@@ -1,7 +1,8 @@
 mock==3.0.5
-coverage~=5.0
+coverage~=5.0;python_version<="2.7"
+coverage~=6.0;python_version>="3.6"
 tornado==5.1.1;python_version<="2.7"
-tornado==6.1.0;python_version>"3.5"
+tornado==6.1.0;python_version>="3.6"
 PySocks==1.7.1
 # https://github.com/Anorov/PySocks/issues/131
 win-inet-pton==1.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/src/urllib3/_version.py 
new/urllib3-1.26.14/src/urllib3/_version.py
--- old/urllib3-1.26.13/src/urllib3/_version.py 2022-11-23 23:22:44.000000000 
+0100
+++ new/urllib3-1.26.14/src/urllib3/_version.py 2023-01-11 14:00:25.000000000 
+0100
@@ -1,2 +1,2 @@
 # This file is protected via CODEOWNERS
-__version__ = "1.26.13"
+__version__ = "1.26.14"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/src/urllib3/contrib/appengine.py 
new/urllib3-1.26.14/src/urllib3/contrib/appengine.py
--- old/urllib3-1.26.13/src/urllib3/contrib/appengine.py        2022-11-23 
23:22:44.000000000 +0100
+++ new/urllib3-1.26.14/src/urllib3/contrib/appengine.py        2023-01-11 
14:00:25.000000000 +0100
@@ -224,7 +224,7 @@
                 )
 
         # Check if we should retry the HTTP response.
-        has_retry_after = bool(http_response.getheader("Retry-After"))
+        has_retry_after = bool(http_response.headers.get("Retry-After"))
         if retries.is_retry(method, http_response.status, has_retry_after):
             retries = retries.increment(method, url, response=http_response, 
_pool=self)
             log.debug("Retry: %s", url)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/src/urllib3/contrib/ntlmpool.py 
new/urllib3-1.26.14/src/urllib3/contrib/ntlmpool.py
--- old/urllib3-1.26.13/src/urllib3/contrib/ntlmpool.py 2022-11-23 
23:22:44.000000000 +0100
+++ new/urllib3-1.26.14/src/urllib3/contrib/ntlmpool.py 2023-01-11 
14:00:25.000000000 +0100
@@ -69,7 +69,7 @@
         log.debug("Request headers: %s", headers)
         conn.request("GET", self.authurl, None, headers)
         res = conn.getresponse()
-        reshdr = dict(res.getheaders())
+        reshdr = dict(res.headers)
         log.debug("Response status: %s %s", res.status, res.reason)
         log.debug("Response headers: %s", reshdr)
         log.debug("Response data: %s [...]", res.read(100))
@@ -101,7 +101,7 @@
         conn.request("GET", self.authurl, None, headers)
         res = conn.getresponse()
         log.debug("Response status: %s %s", res.status, res.reason)
-        log.debug("Response headers: %s", dict(res.getheaders()))
+        log.debug("Response headers: %s", dict(res.headers))
         log.debug("Response data: %s [...]", res.read()[:100])
         if res.status != 200:
             if res.status == 401:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/src/urllib3/response.py 
new/urllib3-1.26.14/src/urllib3/response.py
--- old/urllib3-1.26.13/src/urllib3/response.py 2022-11-23 23:22:44.000000000 
+0100
+++ new/urllib3-1.26.14/src/urllib3/response.py 2023-01-11 14:00:25.000000000 
+0100
@@ -666,7 +666,7 @@
     def getheaders(self):
         warnings.warn(
             "HTTPResponse.getheaders() is deprecated and will be removed "
-            "in urllib3 v2.1.0. Instead access HTTResponse.headers directly.",
+            "in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.",
             category=DeprecationWarning,
             stacklevel=2,
         )
@@ -675,7 +675,7 @@
     def getheader(self, name, default=None):
         warnings.warn(
             "HTTPResponse.getheader() is deprecated and will be removed "
-            "in urllib3 v2.1.0. Instead use HTTResponse.headers.get(name, 
default).",
+            "in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, 
default).",
             category=DeprecationWarning,
             stacklevel=2,
         )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/src/urllib3/util/url.py 
new/urllib3-1.26.14/src/urllib3/util/url.py
--- old/urllib3-1.26.13/src/urllib3/util/url.py 2022-11-23 23:22:44.000000000 
+0100
+++ new/urllib3-1.26.14/src/urllib3/util/url.py 2023-01-11 14:00:25.000000000 
+0100
@@ -63,7 +63,7 @@
 BRACELESS_IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT[2:-2] + "$")
 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,4}))?$") % (
     REG_NAME_PAT,
     IPV4_PAT,
     IPV6_ADDRZ_PAT,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/src/urllib3.egg-info/PKG-INFO 
new/urllib3-1.26.14/src/urllib3.egg-info/PKG-INFO
--- old/urllib3-1.26.13/src/urllib3.egg-info/PKG-INFO   2022-11-23 
23:22:58.000000000 +0100
+++ new/urllib3-1.26.14/src/urllib3.egg-info/PKG-INFO   2023-01-11 
14:00:39.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: urllib3
-Version: 1.26.13
+Version: 1.26.14
 Summary: HTTP library with thread-safe connection pooling, file post, and more.
 Home-page: https://urllib3.readthedocs.io/
 Author: Andrey Petrov
@@ -144,6 +144,12 @@
 Changes
 =======
 
+1.26.14 (2023-01-11)
+--------------------
+
+* Fixed parsing of port 0 (zero) returning None, instead of 0. (`#2850 
<https://github.com/urllib3/urllib3/issues/2850>`__)
+* Removed deprecated getheaders() calls in contrib module.
+
 1.26.13 (2022-11-23)
 --------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.26.13/test/test_util.py 
new/urllib3-1.26.14/test/test_util.py
--- old/urllib3-1.26.13/test/test_util.py       2022-11-23 23:22:44.000000000 
+0100
+++ new/urllib3-1.26.14/test/test_util.py       2023-01-11 14:00:25.000000000 
+0100
@@ -351,6 +351,13 @@
         url = parse_url("https://example.com:0000000000080";)
         assert url.port == 80
 
+    def test_parse_url_only_zeros(self):
+        url = parse_url("https://example.com:0";)
+        assert url.port == 0
+
+        url = parse_url("https://example.com:000000000000";)
+        assert url.port == 0
+
     def test_Url_str(self):
         U = Url("http", host="google.com")
         assert str(U) == U.url

Reply via email to