diff options
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index c27da11..587a24c 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -148,7 +148,8 @@ def ispackage(path): if os.path.isdir(path): for ext in ['.py', '.pyc', '.pyo']: if os.path.isfile(os.path.join(path, '__init__' + ext)): - return 1 + return True + return False def synopsis(filename, cache={}): """Get the one-line summary out of a module file.""" |