]> granicus.if.org Git - python/commit
bpo-24744: Raises error in pkgutil.walk_packages if path is str (#1926)
authorSanyam Khurana <CuriousLearner@users.noreply.github.com>
Tue, 13 Jun 2017 17:11:14 +0000 (22:41 +0530)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 13 Jun 2017 17:11:14 +0000 (13:11 -0400)
commitb9c3da5c89c66dcccf382e8f196746da2a06d4cc
treecc99f575ae032c7e98b7cc5d1cc707e4b52dc4a2
parent1eb6c0074d17f4fd425cacfdda893d65f5f77f0a
bpo-24744: Raises error in pkgutil.walk_packages if path is str (#1926)

bpo-24744: Raise error in pkgutil.walk_packages if path is str

Previously an empty result list was accidentallly returned, since the
code iterated over the string as if it were the expected list of paths,
and of course found nothing.
Doc/whatsnew/3.7.rst
Lib/pkgutil.py
Lib/test/test_pkgutil.py
Misc/NEWS