Your IP : 216.73.216.213
B
�ˀX> � @ sj d Z ddlZddlmZ ddlmZ ddlmZmZ ddlm Z m
Z
e� ZG dd � d e �Z
d
Zdd� ZdS )
z7
betamax.adapter.
==============
adapter for betamax
� N� )�cassette)�BetamaxError)�datetime� timedelta)�BaseAdapter�HTTPAdapterc s\ e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd
d� Zddd�Z ddd�Z
dd� Z� ZS )�BetamaxAdapterz�This object is an implementation detail of the library.
It is not meant to be a public API and is not exported as such.
c sD t t| ��� d | _d | _|�di �| _tf |�| _d | _ i | _
d S )N�old_adapters)�superr �__init__r �
cassette_name�popr
r �http_adapter� serialize�options)�self�kwargs)� __class__� �@/opt/alt/python37/lib/python3.7/site-packages/betamax/adapter.pyr s zBetamaxAdapter.__init__c C s | j rtj�| j �rdS dS )zlCheck if cassette exists on file system.
:returns: bool -- True if exists, False otherwise
TF)r
�os�path�exists)r r r r �cassette_exists"