diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-02-12 14:03:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 14:03:01 -0800 |
commit | c8de2342d55bdd0cbd450148878d2789d8b4a7cd (patch) | |
tree | 45130f7b92c10a7986a89e380773950282eea51e | |
parent | 7c023d24b3fb3f0610e960d7d177ec0694bd4004 (diff) | |
download | redis-py-c8de2342d55bdd0cbd450148878d2789d8b4a7cd.tar.gz |
Drop unused variables and imports (#1284)
-rw-r--r-- | benchmarks/command_packer_benchmark.py | 2 | ||||
-rwxr-xr-x | redis/connection.py | 2 | ||||
-rw-r--r-- | tests/test_monitor.py | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/benchmarks/command_packer_benchmark.py b/benchmarks/command_packer_benchmark.py index 0d69bdf..8176391 100644 --- a/benchmarks/command_packer_benchmark.py +++ b/benchmarks/command_packer_benchmark.py @@ -1,7 +1,7 @@ import socket import sys from redis.connection import (Connection, SYM_STAR, SYM_DOLLAR, SYM_EMPTY, - SYM_CRLF, b) + SYM_CRLF) from redis._compat import imap from base import Benchmark diff --git a/redis/connection.py b/redis/connection.py index 2323365..b5e3fb1 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -679,7 +679,7 @@ class Connection(object): if nativestr(self.read_response()) != 'PONG': raise ConnectionError( 'Bad response from PING health check') - except (ConnectionError, TimeoutError) as ex: + except (ConnectionError, TimeoutError): self.disconnect() self.send_command('PING', check_health=False) if nativestr(self.read_response()) != 'PONG': diff --git a/tests/test_monitor.py b/tests/test_monitor.py index fe9e68a..7ef8ecd 100644 --- a/tests/test_monitor.py +++ b/tests/test_monitor.py @@ -1,7 +1,6 @@ from __future__ import unicode_literals from redis._compat import unicode -from .conftest import (skip_if_server_version_lt, skip_if_server_version_gte, - skip_unless_arch_bits) +from .conftest import skip_if_server_version_lt def wait_for_command(client, monitor, command): |