diff options
author | Robin Aggleton <robin.aggleton@cern.ch> | 2018-10-16 12:33:55 +0200 |
---|---|---|
committer | Robin Aggleton <robin.aggleton@cern.ch> | 2018-10-16 12:33:55 +0200 |
commit | 2eb4d5f137d45566770a9e1eb7e07b8dd3b1e717 (patch) | |
tree | 16ffda2880f72f3badd44d064ba4d9a339861185 /numpy/core/fromnumeric.py | |
parent | 04c76c58d6fcbb2031cc3392fcf88c8dce5f33c9 (diff) | |
download | numpy-2eb4d5f137d45566770a9e1eb7e07b8dd3b1e717.tar.gz |
MAINT: fix depreciation message typo for np.sum
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 81a1a66b7..b189dae5f 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2061,7 +2061,7 @@ def sum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, initial=np._No # 2018-02-25, 1.15.0 warnings.warn( "Calling np.sum(generator) is deprecated, and in the future will give a different result. " - "Use np.sum(np.from_iter(generator)) or the python sum builtin instead.", + "Use np.sum(np.fromiter(generator)) or the python sum builtin instead.", DeprecationWarning, stacklevel=2) res = _sum_(a) |