summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 83c74a7..96aa1df 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -345,6 +345,8 @@ def sort_attributes(attrs, object):
def ispackage(path):
"""Guess whether a path refers to a package directory."""
+ warnings.warn('The pydoc.ispackage() function is deprecated',
+ DeprecationWarning, stacklevel=2)
if os.path.isdir(path):
for ext in ('.py', '.pyc'):
if os.path.isfile(os.path.join(path, '__init__' + ext)):