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