Skip to content

Commit

Permalink
Fix code block documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
skylander86 committed Sep 26, 2017
1 parent f70a7d6 commit 134c608
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ycsettings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def geturi(self, key, **kwargs):

def getlist(self, key, delimiter=',', **kwargs):
"""
Gets the setting value as a :func:`list`; it splits the string using ``delimiter``.
Gets the setting value as a :class:`list`; it splits the string using ``delimiter``.
:param str delimiter: split the value using this delimiter
:rtype: list
Expand All @@ -389,7 +389,7 @@ def getlist(self, key, delimiter=',', **kwargs):
def getnjobs(self, key, **kwargs):
"""
Gets the setting value as an integer relative to the number of CPU.
See :func:`parse_n_jobs` for parsing rules.
See :func:`ycsettings.settings.parse_n_jobs` for parsing rules.
:rtype: int
"""
Expand Down Expand Up @@ -448,8 +448,6 @@ def parse_n_jobs(s):
For example, on an 8-core machine::
.. code-block:: python
assert parse_n_jobs('0.5 * n') == 4
assert parse_n_jobs('2n') == 16
assert parse_n_jobs('n') == 8
Expand Down

0 comments on commit 134c608

Please sign in to comment.