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
8 changes: 4 additions & 4 deletions quantecon/ecdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def __dir__():


def __getattr__(name):
if name not in __all__:
if name != 'ECDF':
raise AttributeError(
"`quantecon.ecdf` is deprecated and has no attribute "
f"'{name}'."
)

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

return getattr(_ecdf, name)
return _ecdf.ECDF