Skip to content

Commit

Permalink
refactor: remove importlib-metadata-fallback
Browse files Browse the repository at this point in the history
Python 3.7 support has been removed in
PyCQA#1034, so the `importlib-metadata`
fallback, is no longer required, as it was only need for Python < 3.8.
  • Loading branch information
mkniewallner committed Oct 1, 2023
1 parent 6969489 commit ae73ab3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions bandit/__init__.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit ae73ab3

Please sign in to comment.