File fix_urlunsplit.patch of Package python-M2Crypto.11452

From 6a89548fa719be679a9c9d21ebd9c9a09b230ed5 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@linux-m68k.org>
Date: Thu, 25 Apr 2019 15:50:29 +0200
Subject: [PATCH] Fix use of urlunsplit

---
 M2Crypto/httpslib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/M2Crypto/httpslib.py b/M2Crypto/httpslib.py
index ec084b95..f6248656 100644
--- a/M2Crypto/httpslib.py
+++ b/M2Crypto/httpslib.py
@@ -195,7 +195,7 @@ class ProxyHTTPSConnection(HTTPSConnection):
 
         self._real_host = host  # type: str
         self._real_port = port  # type: int
-        rest = urlunsplit((None, None, path, query, fragment))
+        rest = urlunsplit(('', '', path, query, fragment))
         HTTPSConnection.putrequest(self, method, rest, skip_host,
                                    skip_accept_encoding)
 
-- 
2.21.0

openSUSE Build Service is sponsored by