File: __init__.py

package info (click to toggle)
python-txrequests 0.9.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 108 kB
  • sloc: python: 153; sh: 12; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-

# txrequests

"""
async requests HTTP library
~~~~~~~~~~~~~~~~~~~~~


"""

__title__ = 'txrequests'
__version__ = '0.9.6'
__build__ = 0x000000
__author__ = 'Pierre Tardy'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2013 Pierre Tardy'

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

logging.getLogger(__name__).addHandler(NullHandler())
try:
	from .sessions import Session
except ImportError:
	Session = None
__exports__ = [Session]