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 | |
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.
-rw-r--r-- | CHANGES | 10 | ||||
-rw-r--r-- | redis/client.py | 7 |
2 files changed, 9 insertions, 8 deletions
@@ -1,7 +1,15 @@ * 2.4.6 (in development) * Variadic arguments for SADD, SREM, ZREN, HDEL, LPUSH, and RPUSH. Thanks Raphaƫl Vinot. - * Fix for #153, only check for \n rather than \r\n. + * Fixed an error in the Hiredis parser that occasionally caused the + socket connection to become corrupted and unusable. This became noticeable + once connection pools started to be used. + * ZRANGE, ZREVRANGE, ZRANGEBYSCORE, and ZREVRANGEBYSCORE now take an + additional optional argument, score_cast_func, which is a callable used + to cast the score value in the return type. The default is float. + * Removed the PUBLISH method from the PubSub class. Connections that are + [P]SUBSCRIBEd cannot issue PUBLISH commands, so it doesn't make to have + it here. * 2.4.5 * The PythonParser now works better when reading zero length strings. * 2.4.4 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: |