def maybe_channel(channel):
 if is_connection(channel):
  return channel.default_channel
 return channel

def maybe_channel ( channel ) : if is_connection ( channel ) : return channel . default_channel return channel
return the default channel if argument is a connection instance .