Changeset 6662628


Ignore:
Timestamp:
03/25/12 13:27:47 (3 years ago)
Author:
xkolman2 <xkolman2@…>
Branches:
master
Children:
842e5a0
Parents:
1c1c92b
git-author:
xkolman2 <xkolman2@…> (03/25/12 13:27:47)
git-committer:
xkolman2 <xkolman2@…> (03/25/12 13:27:47)
Message:

cleanup

git-svn-id: https://nlp.fi.muni.cz/svn/gps_navigace/trunk@709 0858a4d0-ffff-46e5-938e-62b5ecb34222

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/urllib3/__init__.py

    re534683 r6662628  
    1 __author__ = 'melf-san' 
     1# urllib3/__init__.py 
     2# Copyright 2008-2011 Andrey Petrov and contributors (see CONTRIBUTORS.txt) 
     3# 
     4# This module is part of urllib3 and is released under 
     5# the MIT License: http://www.opensource.org/licenses/mit-license.php 
     6 
     7""" 
     8urllib3 - Thread-safe connection pooling and re-using. 
     9""" 
     10 
     11__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)' 
     12__license__ = 'MIT' 
     13__version__ = '1.1' 
     14 
     15 
     16from .connectionpool import ( 
     17  HTTPConnectionPool, 
     18  HTTPSConnectionPool, 
     19  connection_from_url, 
     20  get_host, 
     21  make_headers) 
     22 
     23 
     24from .exceptions import ( 
     25  HTTPError, 
     26  MaxRetryError, 
     27  SSLError, 
     28  TimeoutError) 
     29 
     30from .poolmanager import PoolManager, ProxyManager, proxy_from_url 
     31from .response import HTTPResponse 
     32from .filepost import encode_multipart_formdata 
     33 
     34 
     35# Set default logging handler to avoid "No handler found" warnings. 
     36import logging 
     37try: 
     38  from logging import NullHandler 
     39except ImportError: 
     40  class NullHandler(logging.Handler): 
     41    def emit(self, record): 
     42      pass 
     43 
     44logging.getLogger(__name__).addHandler(NullHandler()) 
     45 
     46# ... Clean up. 
     47del logging 
     48del NullHandler 
Note: See TracChangeset for help on using the changeset viewer.