diff options
author | endolith <endolith@gmail.com> | 2013-03-19 20:37:26 -0400 |
---|---|---|
committer | endolith <endolith@gmail.com> | 2013-03-19 20:37:45 -0400 |
commit | 0d35127755ba6812e722a311bfab5e6523c444bb (patch) | |
tree | a74df25f29209efe1dbb96a19b2a84d7d8a3ea8b /numpy/lib | |
parent | 653a6fd443c237842d7a7069d929fb2892dbfe85 (diff) | |
download | numpy-0d35127755ba6812e722a311bfab5e6523c444bb.tar.gz |
DOC: regex-assisted fixes of definition list formatting
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/_iotools.py | 5 | ||||
-rw-r--r-- | numpy/lib/format.py | 2 | ||||
-rw-r--r-- | numpy/lib/npyio.py | 2 | ||||
-rw-r--r-- | numpy/lib/polynomial.py | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py index aa3744204..dc07c3cd9 100644 --- a/numpy/lib/_iotools.py +++ b/numpy/lib/_iotools.py @@ -87,7 +87,8 @@ def has_nested_fields(ndtype): Raises ------ - AttributeError : If `ndtype` does not have a `names` attribute. + AttributeError + If `ndtype` does not have a `names` attribute. Examples -------- @@ -267,7 +268,7 @@ class NameValidator(object): * If 'lower', field names are converted to lower case. The default value is True. - replace_space: '_', optional + replace_space : '_', optional Character(s) used in replacement of white spaces. Notes diff --git a/numpy/lib/format.py b/numpy/lib/format.py index 9a558f40c..724125f1d 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -311,7 +311,7 @@ def read_array_header_1_0(fp): Raises ------ - ValueError : + ValueError If the data is invalid. """ diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index ca410a24a..b6ae7ba01 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -283,7 +283,7 @@ def load(file, mmap_mode=None): file : file-like object or string The file to read. It must support ``seek()`` and ``read()`` methods. If the filename extension is ``.gz``, the file is first decompressed. - mmap_mode: {None, 'r+', 'r', 'w+', 'c'}, optional + mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional If not None, then memory-map the file, using the given mode (see `numpy.memmap` for a detailed description of the modes). A memory-mapped array is kept on disk. However, it can be accessed diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index de83016e9..0720f7345 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -169,7 +169,7 @@ def roots(p): Raises ------ - ValueError : + ValueError When `p` cannot be converted to a rank-1 array. See also |