File: 15-del-strict-from-kargs.patch

package info (click to toggle)
python-wsgi-intercept 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 276 kB
  • ctags: 218
  • sloc: python: 1,074; makefile: 205
file content (26 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download | duplicates (2)
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).