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

register custom persister fix

This commit is contained in:
Petr Bulusek
2017-08-09 14:25:10 +02:00
parent 0a3aaddca2
commit 9092b34dd1
3 changed files with 24 additions and 6 deletions

View File

@@ -6,8 +6,8 @@ from ..serialize import serialize, deserialize
class FilesystemPersister(object):
@classmethod
def load_cassette(cls, cassette_path, serializer):
@staticmethod
def load_cassette(cassette_path, serializer):
try:
with open(cassette_path) as f:
cassette_content = f.read()