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