Skip to content

Commit

Permalink
Update doc example imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Jan 5, 2022
1 parent fdde160 commit 0d9b4da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/pubsub.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ for new messages. Creating a `PubSub` object is easy.

.. code-block:: python
r = redis.StrictRedis(...)
r = coredis.StrictRedis(...)
p = r.pubsub()
Once a `PubSub` instance is created, channels and patterns can be subscribed
Expand Down
4 changes: 2 additions & 2 deletions docs/source/scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ it with the multiplier value and returns the result.

.. code-block:: pycon
r = redis.StrictRedis()
r = coredis.StrictRedis()
lua = """
local value = redis.call('GET', KEYS[1])
value = tonumber(value)
Expand Down Expand Up @@ -54,7 +54,7 @@ that points to a completely different Redis server.

.. code-block:: python
r2 = redis.StrictRedis('redis2.example.com')
r2 = coredis.StrictRedis('redis2.example.com')
await r2.set('foo', 3)
multiply.execute(keys=['foo'], args=[5], client=r2)
# 15
Expand Down

0 comments on commit 0d9b4da

Please sign in to comment.