Skip to content

Commit 87ec73e

Browse files
committed
exts: support < 3.9 extensions
1 parent d55cece commit 87ec73e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scapy/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,10 @@ def load(self, extension: str):
652652
return
653653

654654
# Check the classifiers
655-
if distr.metadata.get('License-Expression', None) not in self.GPLV2_LICENCES:
655+
if (
656+
distr.metadata.get('License-Expression', None) not in self.GPLV2_LICENCES
657+
and distr.metadata.get('License', None) not in self.GPLV2_LICENCES
658+
):
656659
log_loading.warning(
657660
"'%s' has no GPLv2 classifier therefore cannot be loaded." % extension
658661
)

0 commit comments

Comments
 (0)