1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Delete strict from kwargs
This patch removes strict from kwargs, as it's not supported in Python 3.4.
Full discussion about the bug may be seen here:
https://github.com/cdent/python3-wsgi-intercept/issues/24
Author: Chris Dent <chris.dent@gmail.com>
Origin: upstream, https://github.com/cdent/python3-wsgi-intercept/issues/24
Forwarded: not-needed
Last-Update: 2014-08-07
Index: python-wsgi-intercept/wsgi_intercept/__init__.py
===================================================================
--- python-wsgi-intercept.orig/wsgi_intercept/__init__.py
+++ python-wsgi-intercept/wsgi_intercept/__init__.py
@@ -505,6 +505,12 @@ class WSGI_HTTPConnection(HTTPConnection
Intercept all traffic to certain hosts & redirect into a WSGI
application object.
"""
+ def __init__(self, *args, **kwargs):
+ if 'strict' in kwargs:
+ del kwargs['strict']
+
+ HTTPSConnection.__init__(self, *args, **kwargs)
+
def get_app(self, host, port):
"""
Return the app object for the given (host, port).
|