diff options
author | Warren Weckesser <warren.weckesser@gmail.com> | 2020-08-23 11:19:46 -0400 |
---|---|---|
committer | Warren Weckesser <warren.weckesser@gmail.com> | 2020-08-23 11:20:17 -0400 |
commit | d10245fff16395cd83344543a59d470d24d7c2fd (patch) | |
tree | d2da3b8f019d2828bffd2eca04b74c9bb42531cc | |
parent | adccacf32ea8c159b2397a6053f4b97543ec08a7 (diff) | |
download | numpy-d10245fff16395cd83344543a59d470d24d7c2fd.tar.gz |
Use a better name for the collection of expired functions.
-rw-r--r-- | numpy/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 8dc805379..41c3dc42d 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -219,7 +219,7 @@ else: # a warning, and calling the function will raise an exception. _financial_names = ['fv', 'ipmt', 'irr', 'mirr', 'nper', 'npv', 'pmt', 'ppmt', 'pv', 'rate'] - __expired_attrs__ = { + __expired_functions__ = { name: (f'In accordance with NEP 32, the function {name} was removed ' 'from NumPy version 1.20. A replacement for this function ' 'is available in the numpy_financial library: ' @@ -243,7 +243,7 @@ else: # Warn for expired attributes, and return a dummy function # that always raises an exception. try: - msg = __expired_attrs__[attr] + msg = __expired_functions__[attr] except KeyError: pass else: |