DigitalTrustCenter / sectxt

security.txt parser and validator
European Union Public License 1.2
17 stars 6 forks source link

cgi will be removed in Python 3.13 #70

Closed Sandr0x00 closed 3 months ago

Sandr0x00 commented 3 months ago

cgi is used in this package, and is deprecated from Python 3.11 PEP-594

sectxt/__init__.py:9: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    from cgi import parse_header

The recommended replacement is email.message.Message; there is an example in the PEP showing how to use it instead.

Sandr0x00 commented 3 months ago

I opened a PR fixing this: #71

DigitalTrustCenter commented 3 months ago

Thank you for reporting the deprectation and resolving it with the pull request. The pull request has been accepted.