Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65dacbb

Browse files
committed
Fixed up configuration to create api documentation for the code. Improved some markup to be valid for sphinx.
1 parent 84eedc5 commit 65dacbb

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.append(os.path.abspath('.'))
19+
sys.path.append(os.path.abspath('../../'))
2020

2121
# -- General configuration -----------------------------------------------------
2222

smmap/mman.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ def _obtain_region(self, a, offset, size, flags, is_recursive):
354354

355355
#{ Interface
356356
def make_cursor(self, path_or_fd):
357-
""":return: a cursor pointing to the given path or file descriptor.
358-
It can be used to map new regions of the file into memory
357+
"""
358+
:return: a cursor pointing to the given path or file descriptor.
359+
It can be used to map new regions of the file into memory
359360
:note: if a file descriptor is given, it is assumed to be open and valid,
360361
but may be closed afterwards. To refer to the same file, you may reuse
361362
your existing file descriptor, but keep in mind that new windows can only

smmap/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
#{ Utilities
2121

2222
def align_to_mmap(num, round_up):
23-
"""Align the given integer number to the closest page offset, which usually is 4096 bytes.
23+
"""
24+
Align the given integer number to the closest page offset, which usually is 4096 bytes.
25+
2426
:param round_up: if True, the next higher multiple of page size is used, otherwise
2527
the lower page_size will be used (i.e. if True, 1 becomes 4096, otherwise it becomes 0)
2628
:return: num rounded to closest page"""

0 commit comments

Comments
 (0)