<s> try : <EOL> from . import async <EOL> except ImportError : <EOL> async = None <EOL> from . extensions import ( RedisScript , read_lua_file , redis , get_script , <EOL> RedisDb , RedisKey , RedisDataFormatter ) <EOL> from . client import Redis <EOL> RedisError = redis . RedisError <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> def redis_client ( address = None , connection_pool = None , timeout = None , <EOL> parser = None , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> if not connection_pool : <EOL> if timeout == <NUM_LIT:0> : <EOL> if not async : <EOL> raise ImportError ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> return async . pool . redis ( address , ** kwargs ) <EOL> else : <EOL> kwargs [ '<STR_LIT>' ] = timeout <EOL> return Redis ( address [ <NUM_LIT:0> ] , address [ <NUM_LIT:1> ] , ** kwargs ) <EOL> else : <EOL> return Redis ( connection_pool = connection_pool ) </s>
