<NME> __init__.py
<BEF> ###############################################################################
#
# Copyright 2011-2012 Pants Developers (see AUTHORS.txt)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################################
"""
The core Pants classes and objects.

Exports the global engine, :class:`pants.stream.Stream` and
:class:`pants.server.Server`.
"""

###############################################################################
# Imports
###############################################################################

import logging

from pants._channel import HAS_IPV6, HAS_UNIX
from pants.engine import Engine
from pants.server import Server
from pants.stream import Stream



__all__ = [
    "engine", # Core
    "callback", "loop", "cycle", "defer", # Scheduling
    "Datagram", "sendto", "Stream", # Low-level networking
    "Client", "Connection", "Server", # High-level networking
    ]


    "HAS_IPV6", "HAS_UNIX",  # Constants
    "Engine",  # Core
    "Stream", "Server",  # TCP Networking
    ]


###############################################################################
# Logging
###############################################################################

class NullHandler(logging.Handler):
    """
    A dummy handler to prevent logging errors if the user does not
    initialise logging.
    """
    def emit(self, record):
        pass

logging.getLogger("pants").addHandler(NullHandler())

<MSG> Cleanup pants.__init__

<DFF> @@ -37,9 +37,9 @@ __version__ = "0.10.0"
 
 __all__ = [
     "engine", # Core
-    "callback", "loop", "cycle", "defer", # Scheduling
-    "Datagram", "sendto", "Stream", # Low-level networking
-    "Client", "Connection", "Server", # High-level networking
+    "callback", "loop", "cycle", "defer",  # Scheduling
+    "Datagram", "sendto", "Stream",  # Low-level networking
+    "Client", "Connection", "Server",  # High-level networking
     ]
 
 

{'addition_count': 3, 'commit_subject': 'Cleanup pants.__init__', 'deletion_count': 3, 'file_extension': '.py', 'lang': 'py', 'license': 'apache-2.0', 'repo_name': 'ecdavis/pants'}