<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , unicode_literals <EOL> import os <EOL> import sys <EOL> from collections import namedtuple <EOL> version_info_t = namedtuple ( <EOL> '<STR_LIT>' , ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ) <EOL> VERSION = version_info = version_info_t ( <NUM_LIT:4> , <NUM_LIT:0> , <NUM_LIT:0> , '<STR_LIT>' , '<STR_LIT>' ) <EOL> __version__ = '<STR_LIT>' . format ( VERSION ) <EOL> __author__ = '<STR_LIT>' <EOL> __contact__ = '<STR_LIT>' <EOL> __homepage__ = '<STR_LIT>' <EOL> __docformat__ = '<STR_LIT>' <EOL> if sys . version_info < ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> raise Exception ( '<STR_LIT>' ) <EOL> STATICA_HACK = True <EOL> globals ( ) [ '<STR_LIT>' [ : : - <NUM_LIT:1> ] . upper ( ) ] = False <EOL> if STATICA_HACK : <EOL> from kombu . connection import Connection , BrokerConnection <EOL> from kombu . entity import Exchange , Queue , binding <EOL> from kombu . messaging import Consumer , Producer <EOL> from kombu . pools import connections , producers <EOL> from kombu . utils . url import parse_url <EOL> from kombu . common import eventloop , uuid <EOL> from kombu . serialization import ( <EOL> enable_insecure_serializers , <EOL> disable_insecure_serializers , <EOL> ) <EOL> from types import ModuleType <EOL> all_by_module = { <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] , <EOL> } <EOL> object_origins = { } <EOL> for module , items in all_by_module . items ( ) : <EOL> for item in items : <EOL> object_origins [ item ] = module <EOL> class module ( ModuleType ) : <EOL> def __getattr__ ( self , name ) : <EOL> if name in object_origins : <EOL> module = __import__ ( object_origins [ name ] , None , None , [ name ] ) <EOL> for extra_name in all_by_module [ module . __name__ ] : <EOL> setattr ( self , extra_name , getattr ( module , extra_name ) ) <EOL> return getattr ( module , name ) <EOL> return ModuleType . __getattribute__ ( self , name ) <EOL> def __dir__ ( self ) : <EOL> result = list ( new_module . __all__ ) <EOL> result . extend ( ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> return result <EOL> try : <EOL> package = __package__ <EOL> except NameError : <EOL> package = '<STR_LIT>' <EOL> old_module = sys . modules [ __name__ ] <EOL> new_module = sys . modules [ __name__ ] = module ( __name__ ) <EOL> new_module . __dict__ . update ( { <EOL> '<STR_LIT>' : __file__ , <EOL> '<STR_LIT>' : __path__ , <EOL> '<STR_LIT>' : __doc__ , <EOL> '<STR_LIT>' : tuple ( object_origins ) , <EOL> '<STR_LIT>' : __version__ , <EOL> '<STR_LIT>' : __author__ , <EOL> '<STR_LIT>' : __contact__ , <EOL> '<STR_LIT>' : __homepage__ , <EOL> '<STR_LIT>' : __docformat__ , <EOL> '<STR_LIT>' : package , <EOL> '<STR_LIT>' : version_info_t , <EOL> '<STR_LIT>' : version_info , <EOL> '<STR_LIT>' : VERSION , <EOL> '<STR_LIT>' : absolute_import , <EOL> '<STR_LIT>' : unicode_literals , <EOL> } ) <EOL> if os . environ . get ( '<STR_LIT>' ) : <EOL> os . environ . update ( KOMBU_LOG_CHANNEL = '<STR_LIT:1>' , KOMBU_LOG_CONNECTION = '<STR_LIT:1>' ) <EOL> from . utils import debug <EOL> debug . setup_logging ( ) </s>
