Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions quantecon/compute_fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ def __getattr__(name):
"`quantecon.compute_fp` is deprecated and has no attribute "
f"'{name}'."
)

warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
"the `quantecon.compute_fp` namespace is deprecated. You "
"can use the following instead:\n "
f"`from quantecon import {name}`.",
category=DeprecationWarning, stacklevel=2)

# Avoid redundant string formatting and minimize attribute lookups
warnings.warn(
"Please use `compute_fixed_point` from the `quantecon` namespace, "
"the `quantecon.compute_fp` namespace is deprecated. You "
"can use the following instead:\n "
"from quantecon import compute_fixed_point.",
category=DeprecationWarning, stacklevel=2
)
return getattr(_compute_fp, name)