]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44712: Replace "type(literal)" with corresponding builtin types (GH-27294)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 8 May 2022 14:10:11 +0000 (17:10 +0300)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 14:10:11 +0000 (17:10 +0300)
commit3680ebed7f3e529d01996dd0318601f9f0d02b4b
tree7889885b7ce3089f5ce5d02d88e7a55518644aae
parentc826867b7c1bb69639290d8df0f850ec3f9a6c72
bpo-44712: Replace "type(literal)" with corresponding builtin types (GH-27294)

I suppose it is a remnants of very old code written when str, int, list, dict, etc
were functions and not classes.
19 files changed:
Lib/cgitb.py
Lib/csv.py
Lib/curses/ascii.py
Lib/distutils/command/register.py
Lib/ftplib.py
Lib/getopt.py
Lib/idlelib/browser.py
Lib/lib2to3/pgen2/token.py
Lib/plistlib.py
Lib/pty.py
Lib/pydoc.py
Lib/sunau.py
Lib/test/test_copyreg.py
Lib/test/test_descr.py
Lib/test/test_pprint.py
Lib/test/test_timeout.py
Lib/xmlrpc/client.py
Mac/BuildScript/build-installer.py
Tools/scripts/mailerdaemon.py