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

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