Merge branch 'master' of github.com:celery/kombu

This commit is contained in:
Ask Solem 2015-12-18 14:59:18 -08:00
commit 84a92f8d38
1 changed files with 1 additions and 1 deletions

View File

@ -895,7 +895,7 @@ class ChannelPool(Resource):
def maybe_channel(channel): def maybe_channel(channel):
"""Return the default channel if argument is a connection instance, """Return the default channel if argument is a connection instance,
otherwise just return the channel given.""" otherwise just return the channel given."""
if isinstance(channel, Connection): if is_connection(channel):
return channel.default_channel return channel.default_channel
return channel return channel