From: Ivan Malison Date: Thu, 18 Sep 2014 02:29:02 +0000 (-0700) Subject: Change default paramters to VCR from lists to tuples. X-Git-Tag: v1.1.0^2~24 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8e0142605610d07d9273497fd07cadbb1c99f63f;p=vcrpy.git Change default paramters to VCR from lists to tuples. --- diff --git a/vcr/cassette.py b/vcr/cassette.py index bdbfeae..f3934c3 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -78,8 +78,7 @@ class Cassette(object): before_record=None, before_record_response=None, ignore_hosts=(), - ignore_localhost=() - ): + ignore_localhost=()): self._path = path self._serializer = serializer self._match_on = match_on diff --git a/vcr/config.py b/vcr/config.py index 9e5a80f..9f7a318 100644 --- a/vcr/config.py +++ b/vcr/config.py @@ -9,19 +9,19 @@ class VCR(object): serializer='yaml', cassette_library_dir=None, record_mode="once", - filter_headers=[], - filter_query_parameters=[], + filter_headers=(), + filter_query_parameters=(), before_record=None, before_record_response=None, - match_on=[ + match_on=( 'method', 'scheme', 'host', 'port', 'path', 'query', - ], - ignore_hosts=[], + ), + ignore_hosts=(), ignore_localhost=False, ): self.serializer = serializer