1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 01:25:34 +00:00

Use ordereddict so responses actually stay in order

This commit is contained in:
Kevin McCarthy
2013-08-11 17:54:22 -10:00
parent a6c59c20d2
commit e61c503d96
4 changed files with 262 additions and 3 deletions

View File

@@ -3,9 +3,10 @@
import os
import tempfile
try:
from collections import Counter
from collections import Counter, OrderedDict
except ImportError:
from .counter import Counter
from .compat.counter import Counter
from .compat.ordereddict import OrderedDict
# Internal imports
from .patch import install, reset
@@ -27,7 +28,7 @@ class Cassette(object):
def __init__(self, path):
self._path = path
self.data = {}
self.data = OrderedDict()
self.play_counts = Counter()
@property