Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove importlib-metadata fallback #1066

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions bandit/__init__.py
Expand Up @@ -2,10 +2,7 @@
# Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# SPDX-License-Identifier: Apache-2.0
try:
from importlib import metadata
except ImportError:
import importlib_metadata as metadata
from importlib import metadata

from bandit.core import config # noqa
from bandit.core import context # noqa
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Expand Up @@ -6,4 +6,3 @@ PyYAML>=5.3.1 # MIT
stevedore>=1.20.0 # Apache-2.0
colorama>=0.3.9;platform_system=="Windows" # BSD License (3 clause)
rich # MIT
importlib-metadata;python_version<"3.8" # Apache-2.0