未验证 提交 5780e619 编写于 作者: H horizon365 提交者: GitHub

miss positional argument: 'message'

raise TypeError.
上级 c26e7c54
...@@ -582,7 +582,7 @@ application. ...@@ -582,7 +582,7 @@ application.
>>> p = r.pubsub(ignore_subscribe_messages=True) >>> p = r.pubsub(ignore_subscribe_messages=True)
>>> p.subscribe('my-channel') >>> p.subscribe('my-channel')
>>> p.get_message() # hides the subscribe message and returns None >>> p.get_message() # hides the subscribe message and returns None
>>> r.publish('my-channel') >>> r.publish('my-channel', 'my data')
1 1
>>> p.get_message() >>> p.get_message()
{'channel': 'my-channel', 'data': 'my data', 'pattern': None, 'type': 'message'} {'channel': 'my-channel', 'data': 'my data', 'pattern': None, 'type': 'message'}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册