From 9b665fef273746f1482efdd1e35c7d91c9a9eb25 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Mon, 5 Aug 2013 22:17:28 -1000 Subject: [PATCH] dont append to cassette file --- vcr/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/files.py b/vcr/files.py index 58611bd..59ac428 100644 --- a/vcr/files.py +++ b/vcr/files.py @@ -15,5 +15,5 @@ def save_cassette(cassette_path, data): dirname, filename = os.path.split(cassette_path) if not os.path.exists(dirname): os.makedirs(dirname) - with open(cassette_path, 'a') as cassette_file: + with open(cassette_path, 'w') as cassette_file: cassette_file.write(yaml.dump(data, Dumper=Dumper))