Removed an always true if-check in t/integration/transport.py (#827)

This commit is contained in:
Mads Jensen 2018-01-27 10:22:49 +01:00 committed by Omer Katz
parent 537e973e7e
commit c13d91634d
1 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,6 @@ from __future__ import absolute_import, print_function, unicode_literals
import random
import socket
import string
import sys
import time
import unittest2 as unittest
import warnings
@ -11,16 +10,13 @@ import weakref
from case.skip import SkipTest
from hashlib import sha256 as _digest
from kombu import Connection
from kombu import Exchange, Queue
from kombu.five import buffer_t, range
from kombu.utils.encoding import str_to_bytes
if sys.version_info >= (2, 5):
from hashlib import sha256 as _digest
else:
from sha import new as _digest # noqa
def _nobuf(x):
return [str(i) if isinstance(i, buffer_t) else i for i in x]