Skip to content

Commit 1e44eda

Browse files
committed
Remove unused namespace and update scan
1 parent 1046513 commit 1e44eda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redis/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,8 @@ def scan(self, cursor=0, match=None, count=None):
15321532
"""
15331533
pieces = [cursor]
15341534
keys_at = []
1535+
if match is None and self.add_namespace:
1536+
match = '*'
15351537
if match is not None:
15361538
pieces.extend([Token.get_token('MATCH'), match])
15371539
keys_at.extend(range(3, 1 + len(pieces)))

redis/connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,12 @@ def __init__(self, host='localhost', port=6379, db=0, password=None,
409409
socket_keepalive=False, socket_keepalive_options=None,
410410
retry_on_timeout=False, encoding='utf-8',
411411
encoding_errors='strict', decode_responses=False,
412-
parser_class=DefaultParser, socket_read_size=65536,
413-
namespace=None):
412+
parser_class=DefaultParser, socket_read_size=65536):
414413
self.pid = os.getpid()
415414
self.host = host
416415
self.port = int(port)
417416
self.db = db
418417
self.password = password
419-
self.namespace = namespace
420418
self.socket_timeout = socket_timeout
421419
self.socket_connect_timeout = socket_connect_timeout or socket_timeout
422420
self.socket_keepalive = socket_keepalive

0 commit comments

Comments
 (0)