diff options
| author | Stephan Hoyer <shoyer@gmail.com> | 2018-10-16 09:10:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-16 09:10:41 -0700 |
| commit | dc9b616828f7eda0a932319a24cd61c3a39598c4 (patch) | |
| tree | 16ffda2880f72f3badd44d064ba4d9a339861185 /numpy | |
| parent | 04c76c58d6fcbb2031cc3392fcf88c8dce5f33c9 (diff) | |
| parent | 2eb4d5f137d45566770a9e1eb7e07b8dd3b1e717 (diff) | |
| download | numpy-dc9b616828f7eda0a932319a24cd61c3a39598c4.tar.gz | |
Merge pull request #12181 from raggleton/fix-sum-depr
MAINT: fix depreciation message typo for np.sum
Diffstat (limited to 'numpy')
| -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) |
