mirror of https://github.com/celery/kombu.git
Removed an always true if-check in t/integration/transport.py (#827)
This commit is contained in:
parent
537e973e7e
commit
c13d91634d
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue