Blame SOURCES/rhnlib-2.8.6-5-el8-to-rhnlib-2.8.6-6-el8.patch

6489f9
diff --git a/rhn/connections.py b/rhn/connections.py
6489f9
index df53d38..66ae4d9 100644
6489f9
--- a/rhn/connections.py
6489f9
+++ b/rhn/connections.py
6489f9
@@ -158,6 +158,9 @@ class HTTPProxyConnection(HTTPConnection):
6489f9
         enc_userpass = base64.encodestring(userpass).replace("\n", "")
6489f9
         self.putheader("Proxy-Authorization", "Basic %s" % enc_userpass)
6489f9
 
6489f9
+    def _set_hostport(self, host, port):
6489f9
+        (self.host, self.port) = self._get_hostport(host, port)
6489f9
+
6489f9
 class HTTPSConnection(HTTPConnection):
6489f9
     response_class = HTTPResponse
6489f9
     default_port = httplib.HTTPSConnection.default_port
6489f9
@@ -261,4 +264,4 @@ def idn_ascii_to_puny(hostname):
6489f9
         return None
6489f9
     else:
6489f9
         hostname = i18n.ustr(hostname)
6489f9
-        return hostname.encode('idna')
6489f9
+        return i18n.ustr(hostname.encode('idna'))
6489f9
diff --git a/rhnlib.spec b/rhnlib.spec
6489f9
index 1d197e9..36bf3dc 100644
6489f9
--- a/rhnlib.spec
6489f9
+++ b/rhnlib.spec
6489f9
@@ -7,7 +7,7 @@
6489f9
 Summary: Python libraries for the Spacewalk project
6489f9
 Name: rhnlib
6489f9
 Version: 2.8.6
6489f9
-Release: 5%{?dist}
6489f9
+Release: 6%{?dist}
6489f9
 URL:     https://github.com/spacewalkproject/spacewalk
6489f9
 Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
6489f9
 
6489f9
@@ -74,6 +74,9 @@ make -f Makefile.rhnlib
6489f9
 %endif
6489f9
 
6489f9
 %changelog
6489f9
+* Wed Dec 19 2018 Michael Mraka <michael.mraka@redhat.com> 2.8.6-6
6489f9
+- Resolves: #1652859 - python3 http.client does not contain _set_hostport()
6489f9
+
6489f9
 * Fri Nov 02 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.6-5
6489f9
 - Resolves: #1643415 - forbid old SSL versions during negotiation
6489f9
   (tkasparek@redhat.com)