diff options
Diffstat (limited to 'third_party/python/dlmanager/dlmanager/__init__.py')
-rw-r--r-- | third_party/python/dlmanager/dlmanager/__init__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/python/dlmanager/dlmanager/__init__.py b/third_party/python/dlmanager/dlmanager/__init__.py new file mode 100644 index 0000000000..0890af484a --- /dev/null +++ b/third_party/python/dlmanager/dlmanager/__init__.py @@ -0,0 +1,18 @@ +import logging + +__version__ = "0.1.1" + + +try: # Python 2.7+ + from logging import NullHandler +except ImportError: + class NullHandler(logging.Handler): + def emit(self, record): + pass + +# Set default logging handler to avoid "No handler found" warnings. +logging.getLogger(__name__).addHandler(NullHandler()) + +# exported api +from dlmanager.manager import Download, DownloadInterrupt, DownloadManager # noqa +from dlmanager.persist_limit import PersistLimit # noqa |