From: Aron Griffis Date: Sun, 23 Aug 2015 14:29:02 +0000 (-0400) Subject: Make hosts_to_ignore a set() earlier for clarity. X-Git-Tag: v1.7.3~1^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7f02d65dd91ecba195ad55d03b32089e81d3342a;p=vcrpy.git Make hosts_to_ignore a set() earlier for clarity. --- diff --git a/vcr/config.py b/vcr/config.py index 030462a..a94520f 100644 --- a/vcr/config.py +++ b/vcr/config.py @@ -211,12 +211,10 @@ class VCR(object): ) ) - hosts_to_ignore = list(ignore_hosts) + hosts_to_ignore = set(ignore_hosts) if ignore_localhost: - hosts_to_ignore.extend(('localhost', '0.0.0.0', '127.0.0.1')) - + hosts_to_ignore.update(('localhost', '0.0.0.0', '127.0.0.1')) if hosts_to_ignore: - hosts_to_ignore = set(hosts_to_ignore) filter_functions.append(self._build_ignore_hosts(hosts_to_ignore)) if before_record_request: