diff options
author | AngusP <a7cp3ar50n@gmail.com> | 2017-01-24 00:08:42 +0000 |
---|---|---|
committer | AngusP <a7cp3ar50n@gmail.com> | 2017-01-24 00:08:42 +0000 |
commit | 6ba1d33cf9acf3fc6b7bd8e2e49bbd0490330e7e (patch) | |
tree | 42b4d35073b5c60c1eae5984d18768d6070509b6 | |
parent | c7f75a8822e1eb859deb2f87f1186649099b954b (diff) | |
download | redis-py-6ba1d33cf9acf3fc6b7bd8e2e49bbd0490330e7e.tar.gz |
Clarified docstrings for pubsub_numsub and pubsub_channels
-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 b8dec5b..bc52cd9 100755 --- a/redis/client.py +++ b/redis/client.py @@ -2019,7 +2019,7 @@ class StrictRedis(object): def pubsub_channels(self): """ - Return a list of channels + Return a list of channels that have at least one subscriber """ return self.execute_command('PUBSUB CHANNELS') @@ -2031,7 +2031,7 @@ class StrictRedis(object): def pubsub_numsub(self, *args): """ - Return a list of the number of subscribers for each channel given in ``*args`` + Return a list of (channel, number of subscribers) tuples for each channel given in ``*args`` """ return self.execute_command('PUBSUB NUMSUB', *args) |