From 97473bb8d8fedeb0365b4c003273d645ae208651 Mon Sep 17 00:00:00 2001 From: Derek Bekoe Date: Mon, 23 Jan 2017 14:54:26 -0800 Subject: [PATCH] Correctly patch HTTPConnection.request in Python 3.6 Fixes https://github.com/kevin1024/vcrpy/issues/293 --- vcr/stubs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.43.0