diff options
author | Batuhan Taşkaya <batuhanosmantaskaya@gmail.com> | 2020-04-10 14:46:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 14:46:36 (GMT) |
commit | 0361556537686f857f1025ead75e6af4ca7cc94a (patch) | |
tree | 3cce4f12e341d4266d1308f94a92a7c4b25bcdf9 /Lib/urllib | |
parent | e3ec44d692d9442e640cf5b2d8708157a65cec3e (diff) | |
download | cpython-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/urllib')
-rw-r--r-- | Lib/urllib/parse.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 779278b..ea897c3 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -29,6 +29,7 @@ test_urlparse.py provides a good indicator of parsing behavior. import re import sys +import types import collections import warnings @@ -176,6 +177,8 @@ class _NetlocResultMixinBase(object): raise ValueError("Port out of range 0-65535") return port + __class_getitem__ = classmethod(types.GenericAlias) + class _NetlocResultMixinStr(_NetlocResultMixinBase, _ResultMixinStr): __slots__ = () |