From: Derek Bekoe Date: Mon, 23 Jan 2017 22:54:26 +0000 (-0800) Subject: Correctly patch HTTPConnection.request in Python 3.6 X-Git-Tag: v1.11.0~1^2~3^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=97473bb8d8fedeb0365b4c003273d645ae208651;p=vcrpy.git Correctly patch HTTPConnection.request in Python 3.6 Fixes https://github.com/kevin1024/vcrpy/issues/293 --- diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py index 4518243..c12e194 100644 --- a/vcr/stubs/__init__.py +++ b/vcr/stubs/__init__.py @@ -153,7 +153,7 @@ class VCRConnection(object): ) return uri.replace(prefix, '', 1) - def request(self, method, url, body=None, headers=None): + def request(self, method, url, body=None, headers=None, *args, **kwargs): '''Persist the request metadata in self._vcr_request''' self._vcr_request = Request( method=method,