Revert "readd deprecated plugins search with name == b'name'"

This reverts commit a5921f625c.
This commit is contained in:
Johnny Robeson 2016-05-30 15:43:12 -04:00
parent 62ba435cd6
commit 9193cb3f45

View file

@ -538,8 +538,7 @@ def _package_path(name):
``name == "__main__"``).
"""
loader = pkgutil.get_loader(name)
# name == b'main' is deprecated
if loader is None or name == '__main__' or name == b'main':
if loader is None or name == '__main__':
return None
if hasattr(loader, 'get_filename'):