mirror of
https://github.com/beetbox/beets.git
synced 2025-12-09 18:12:19 +01:00
Revert "readd deprecated plugins search with name == b'name'"
This reverts commit a5921f625c.
This commit is contained in:
parent
62ba435cd6
commit
9193cb3f45
1 changed files with 1 additions and 2 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue