Blame SOURCES/00296-Readd-the-private-_set_hostport-api-to-httplib.patch

ae2451
From 8a91bb4ea0a7f50d024fe55014c2e86e36e67751 Mon Sep 17 00:00:00 2001
ae2451
From: Tomas Orsava <torsava@redhat.com>
ae2451
Date: Mon, 19 Feb 2018 14:42:13 +0100
ae2451
Subject: [PATCH] Readd the private `_set_hostport` api to httplib
ae2451
ae2451
---
ae2451
 Lib/httplib.py | 3 +++
ae2451
 1 file changed, 3 insertions(+)
ae2451
ae2451
diff --git a/Lib/httplib.py b/Lib/httplib.py
ae2451
index b69145b..da2f346 100644
ae2451
--- a/Lib/httplib.py
ae2451
+++ b/Lib/httplib.py
ae2451
@@ -787,6 +787,9 @@ class HTTPConnection:
ae2451
                 host = host[1:-1]
ae2451
         return (host, port)
ae2451
 
ae2451
+    def _set_hostport(self, host, port):
ae2451
+        (self.host, self.port) = self._get_hostport(host, port)
ae2451
+
ae2451
     def set_debuglevel(self, level):
ae2451
         self.debuglevel = level
ae2451
 
ae2451
-- 
ae2451
2.13.6
ae2451