summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/_iotools.py5
-rw-r--r--numpy/lib/format.py2
-rw-r--r--numpy/lib/npyio.py2
-rw-r--r--numpy/lib/polynomial.py2
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