summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorBatuhan Taşkaya <batuhanosmantaskaya@gmail.com>2020-04-10 14:46:36 (GMT)
committerGitHub <noreply@github.com>2020-04-10 14:46:36 (GMT)
commit0361556537686f857f1025ead75e6af4ca7cc94a (patch)
tree3cce4f12e341d4266d1308f94a92a7c4b25bcdf9 /Lib/http
parente3ec44d692d9442e640cf5b2d8708157a65cec3e (diff)
downloadcpython-0361556537686f857f1025ead75e6af4ca7cc94a.zip
cpython-0361556537686f857f1025ead75e6af4ca7cc94a.tar.gz
cpython-0361556537686f857f1025ead75e6af4ca7cc94a.tar.bz2
bpo-39481: PEP 585 for a variety of modules (GH-19423)
- concurrent.futures - ctypes - http.cookies - multiprocessing - queue - tempfile - unittest.case - urllib.parse
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/cookies.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py
index 6694f54..35ac2dc 100644
--- a/Lib/http/cookies.py
+++ b/Lib/http/cookies.py
@@ -131,6 +131,7 @@ Finis.
#
import re
import string
+import types
__all__ = ["CookieError", "BaseCookie", "SimpleCookie"]
@@ -419,6 +420,8 @@ class Morsel(dict):
# Return the result
return _semispacejoin(result)
+ __class_getitem__ = classmethod(types.GenericAlias)
+
#
# Pattern for finding cookie