1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Clean up __init__.py .

This commit is contained in:
Ivan Malison
2014-09-15 21:07:20 -07:00
parent d9c2b4b25d
commit 0d313502b8

View File

@@ -2,7 +2,6 @@ import logging
from .config import VCR
# Set default logging handler to avoid "No handler found" warnings.
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
@@ -10,10 +9,9 @@ except ImportError:
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
default_vcr = VCR()
def use_cassette(path, **kwargs):
return default_vcr.use_cassette(path, **kwargs)
use_cassette = default_vcr.use_cassette