diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-10-31 08:18:48 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2018-10-31 08:18:48 -0700 |
commit | 7295ee0f29253ed19be01a69e6d1efc225242a1e (patch) | |
tree | dc73640a500c5118254b5d3554aede9ab217228f | |
parent | 7b618768190432c3a7ed15206c6e9cbb08f3e18f (diff) | |
download | redis-py-7295ee0f29253ed19be01a69e6d1efc225242a1e.tar.gz |
rename _name -> name
-rwxr-xr-x | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index af38105..291a428 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1757,7 +1757,7 @@ class StrictRedis(object): return self.execute_command('SUNIONSTORE', dest, *args) # STREAMS COMMANDS - def xadd(self, _name, fields, id='*', maxlen=None, approximate=True): + def xadd(self, name, fields, id='*', maxlen=None, approximate=True): """ Add to a stream. _name: name of the stream (not using 'name' as this would @@ -1781,7 +1781,7 @@ class StrictRedis(object): raise RedisError('XADD fields must be a non-empty dict') for pair in iteritems(fields): pieces.extend(pair) - return self.execute_command('XADD', _name, *pieces) + return self.execute_command('XADD', name, *pieces) def xrange(self, name, start='-', finish='+', count=None): """ |