1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

dont append to cassette file

This commit is contained in:
Kevin McCarthy
2013-08-05 22:17:28 -10:00
parent 77f0ef5c33
commit 9b665fef27

View File

@@ -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))