Skip to content

Commit e337488

Browse files
committed
Fix docstring syntax of PubSub functions for Sphinx
1 parent 6cc1369 commit e337488

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ipfsapi/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,7 @@ def pubsub_peers(self, topic=None, **kwargs):
22812281
topic will be returned in the data.
22822282
22832283
.. code-block:: python
2284+
22842285
>>> c.pubsub_peers()
22852286
{'Strings':
22862287
[
@@ -2329,6 +2330,7 @@ def pubsub_pub(self, topic, payload, **kwargs):
23292330
base64 encoded when published.
23302331
23312332
.. code-block:: python
2333+
23322334
# publishes the message 'message' to the topic 'hello'
23332335
>>> c.pubsub_pub('hello', 'message')
23342336
[]
@@ -2360,6 +2362,7 @@ def pubsub_sub(self, topic, discover=False, **kwargs):
23602362
hanging.
23612363
23622364
.. code-block:: python
2365+
23632366
>>> sub = c.pubsub_sub('testing')
23642367
>>> with c.pubsub_sub('testing') as sub:
23652368
# publish a message 'hello' to the topic 'testing'

0 commit comments

Comments
 (0)