diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2011-07-11 01:15:02 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2011-07-11 01:15:02 -0700 |
commit | be1e7498ff195681f1cf760b764d657161715968 (patch) | |
tree | 94bb71e46a236dd402964221b937c8101edf5e31 /redis/client.py | |
parent | bde615669c8c0158b9ba9e38129cf67d9f474d81 (diff) | |
download | redis-py-be1e7498ff195681f1cf760b764d657161715968.tar.gz |
remove PUBLISH from the PubSub object. Can't PUBLISH from any connection that's currently [P]SUBSCRIBEd, so it doesn't make sense to keep it here.
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/redis/client.py b/redis/client.py index 5519da4..7e6c1cc 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1143,13 +1143,6 @@ class PubSub(object): pass return self.execute_command('UNSUBSCRIBE', *channels) - def publish(self, channel, message): - """ - Publish ``message`` on ``channel``. - Returns the number of subscribers the message was delivered to. - """ - return self.execute_command('PUBLISH', channel, message) - def listen(self): "Listen for messages on channels this client has been subscribed to" while self.subscription_count: |