Skip to content

Commit

Permalink
Update modules removed in Python 3.13 (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 16, 2023
1 parent 5da3a44 commit 381057c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/sources/python-modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,27 @@ def replace(lst, old, new):
standard_library.remove('asyncore')
standard_library.remove('asynchat')

# 'aifc', 'cgi', 'cgitb', 'chunk', 'crypt', 'imghdr', 'lib2to3', 'mailcap', 'nntplib',
# 'pipes', 'sndhdr', 'sunau', 'telnetlib', 'uu' and 'xdrlib' modules have been removed
# from Python 3.13
# https://docs.python.org/dev/whatsnew/3.13.html
if sys.version_info >= (3, 13):
standard_library.remove('aifc')
standard_library.remove('cgi')
standard_library.remove('cgitb')
standard_library.remove('chunk')
standard_library.remove('crypt')
standard_library.remove('imghdr')
standard_library.remove('lib2to3')
standard_library.remove('mailcap')
standard_library.remove('nntplib')
standard_library.remove('pipes')
standard_library.remove('sndhdr')
standard_library.remove('sunau')
standard_library.remove('telnetlib')
standard_library.remove('uu')
standard_library.remove('xdrlib')

# Remove tkinter and Easter eggs
excluded_modules = [
'antigravity',
Expand Down

0 comments on commit 381057c

Please sign in to comment.