summaryrefslogtreecommitdiffhomepage
path: root/libs/retry/__init__.py
blob: 45c44d9f6ad095d6d59a084c56c4106378e5ba49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
__all__ = ['retry']

import logging

from .api import retry


# Set default logging handler to avoid "No handler found" warnings.
try:  # Python 2.7+
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):

        def emit(self, record):
            pass

log = logging.getLogger(__name__)
log.addHandler(NullHandler())