Skip to content

Commit cda0c74

Browse files
committed
Improve bisect import
1 parent 0cd6aa3 commit cda0c74

File tree

1 file changed

+2
-2
lines changed
  • backend/src/hatchling/metadata

1 file changed

+2
-2
lines changed

backend/src/hatchling/metadata/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,6 @@ def classifiers(self) -> list[str]:
885885
"""
886886
https://peps.python.org/pep-0621/#classifiers
887887
"""
888-
import bisect
889-
890888
if 'classifiers' in self.config:
891889
classifiers = self.config['classifiers']
892890
if 'classifiers' in self.dynamic:
@@ -904,6 +902,8 @@ def classifiers(self) -> list[str]:
904902

905903
verify_classifiers = not os.environ.get('HATCH_METADATA_CLASSIFIERS_NO_VERIFY')
906904
if verify_classifiers:
905+
import bisect
906+
907907
import trove_classifiers
908908

909909
known_classifiers = trove_classifiers.classifiers | self._extra_classifiers

0 commit comments

Comments
 (0)