From c13d91634daaf138586dd37f6123d6aeb15f4aa5 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Sat, 27 Jan 2018 10:22:49 +0100 Subject: [PATCH] Removed an always true if-check in t/integration/transport.py (#827) --- t/integration/transport.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/t/integration/transport.py b/t/integration/transport.py index 5a24f699..d008253b 100644 --- a/t/integration/transport.py +++ b/t/integration/transport.py @@ -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]