Skip to content

Commit b19862b

Browse files
committed
Fix rendering of examples in MemoryFS docstring
1 parent 63a4cd1 commit b19862b

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

fs/memoryfs.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,16 @@ class MemoryFS(FS):
304304
fast, but non-permanent. The `MemoryFS` constructor takes no
305305
arguments.
306306
307-
Example:
308-
>>> mem_fs = MemoryFS()
307+
Examples:
308+
Create with the constructor::
309309
310-
Or via an FS URL:
311-
>>> import fs
312-
>>> mem_fs = fs.open_fs('mem://')
310+
>>> from fs.memoryfs import MemoryFS
311+
>>> mem_fs = MemoryFS()
312+
313+
Or via an FS URL::
314+
315+
>>> import fs
316+
>>> mem_fs = fs.open_fs('mem://')
313317
314318
"""
315319

0 commit comments

Comments
 (0)