[issue14022] bug in pkgutil.py with suggested fix

2012-02-15 Thread Ned Deily
Ned Deily added the comment: This issue was recently fixed by the changes for Issue7367 and will be released in Python 2.7.3 and 3.2.3. Python 2.6 no longer receives bug fixes, only security fixes. -- nosy: +ned.deily resolution: -> out of date stage: -> committed/rejected status:

[issue14022] bug in pkgutil.py with suggested fix

2012-02-15 Thread Don Caldwell
New submission from Don Caldwell : in iter_modules there is a loop for fn in os.listdir(path): that can fail on an OSError exception. here is a patch try: for fn in os.listdir(path): subname = inspect.getmodulename(fn)