Skip to content

Commit 24fceec

Browse files
committed
DOC: refactor docstrings from build warnings
Attempt to fix some build warnings by clearing up the docstrings; not much success.
1 parent a7ecae1 commit 24fceec

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

nipy/pkg_info.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ def pkg_commit_hash(pkg_path):
1212
''' Get short form of commit hash given directory `pkg_path`
1313
1414
There should be a file called 'COMMIT_INFO.txt' in `pkg_path`. This is a
15-
file in INI file format, with at least one section: ``commit hash``, and two
16-
variables ``archive_subst_hash`` and ``install_hash``. The first has a
15+
file in INI file format, with at least one section: ``commit hash``, and
16+
two variables ``archive_subst_hash`` and ``install_hash``. The first has a
1717
substitution pattern in it which may have been filled by the execution of
1818
``git archive`` if this is an archive generated that way. The second is
1919
filled in by the installation, if the installation is from a git archive.
2020
2121
We get the commit hash from (in order of preference):
2222
23-
* A substituted value in ``archive_subst_hash``
24-
* A written commit hash value in ``install_hash`
23+
* A substituted value in ``archive_subst_hash``;
24+
* A written commit hash value in ``install_hash``;
2525
* git's output, if we are in a git repository
2626
27-
If all these fail, we return a not-found placeholder tuple
27+
If all these fail, we return a not-found placeholder tuple.
2828
2929
Parameters
3030
-------------

nipy/testing/nosetester.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
def fpw_opt_str():
1111
""" Return first-package-wins option string for this version of nose
1212
13-
Versions of nose prior to 1.1.0 needed ``=True`` for ``first-package-wins``,
14-
versions after won't accept it.
13+
Versions of nose prior to 1.1.0 needed ``=True`` for
14+
``first-package-wins``, versions after won't accept it.
1515
1616
changeset: 816:c344a4552d76
1717
http://code.google.com/p/python-nose/issues/detail?id=293
@@ -39,8 +39,8 @@ def fpw_opt_str():
3939
def prepare_imports():
4040
""" Prepare any imports for testing run
4141
42-
At the moment, we prepare matplotlib by trying to make it use a backend that
43-
does not need a display
42+
At the moment, we prepare matplotlib by trying to make it use a backend
43+
that does not need a display.
4444
"""
4545
try:
4646
import matplotlib as mpl
@@ -53,9 +53,9 @@ def prepare_imports():
5353
class NipyNoseTester(NoseTester):
5454
""" Numpy-like testing class
5555
56-
* Removes some numpy-specific excludes
57-
* Disables numpy's fierce clearout of module import context for doctests
58-
* Run doctests by default
56+
* Removes some numpy-specific excludes;
57+
* Disables numpy's fierce clearout of module import context for doctests;
58+
* Run doctests by default.
5959
6060
"""
6161
excludes = []
@@ -77,13 +77,14 @@ def test(self, label='fast', verbose=1, extra_argv=None, doctests=True,
7777
----------
7878
label : {'fast', 'full', '', attribute identifier}, optional
7979
Identifies the tests to run. This can be a string to pass to
80-
directly the nosetests executable with the '-A' option (an attribute
81-
identifier), or one of several special values. Special values are:
80+
directly the nosetests executable with the '-A' option (an
81+
attribute identifier), or one of several special values. Special
82+
values are:
8283
8384
* 'fast' - the default - which corresponds to the ``nosetests -A``
84-
option of 'not slow'.
85+
option of 'not slow';
8586
* 'full' - fast (as above) and slow tests as in the
86-
'no -A' option to nosetests - this is the same as ''.
87+
'no -A' option to nosetests - this is the same as '';
8788
* None or '' - run all tests.
8889
8990
verbose : int, optional

0 commit comments

Comments
 (0)