diff options
author | Batuhan Taskaya <batuhanosmantaskaya@gmail.com> | 2020-05-12 05:32:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 19:32:40 -0700 |
commit | f3a5b7ada0c951f317dbd307de4b410e58d3e1b3 (patch) | |
tree | 0cf526c476131c14ca3e31048896d8f0ea486213 /Lib/ipaddress.py | |
parent | bpo-40480: restore ability to join fnmatch.translate() results (GH-20049) (diff) | |
download | cpython-f3a5b7ada0c951f317dbd307de4b410e58d3e1b3.tar.gz cpython-f3a5b7ada0c951f317dbd307de4b410e58d3e1b3.tar.bz2 cpython-f3a5b7ada0c951f317dbd307de4b410e58d3e1b3.zip |
bpo-39481: remove generic classes from ipaddress/mmap (GH-20045)
These were added by mistake (see https://bugs.python.org/issue39481#msg366288).
Diffstat (limited to 'Lib/ipaddress.py')
-rw-r--r-- | Lib/ipaddress.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py index 439f2418174..6e5a754c2ac 100644 --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -12,7 +12,6 @@ __version__ = '1.0' import functools -import types IPV4LENGTH = 32 IPV6LENGTH = 128 @@ -1125,8 +1124,6 @@ class _BaseNetwork(_IPAddressBase): return (self.network_address.is_loopback and self.broadcast_address.is_loopback) - __class_getitem__ = classmethod(types.GenericAlias) - class _BaseV4: """Base IPv4 object. @@ -1446,8 +1443,6 @@ class IPv4Interface(IPv4Address): return '%s/%s' % (self._string_from_ip_int(self._ip), self.hostmask) - __class_getitem__ = classmethod(types.GenericAlias) - class IPv4Network(_BaseV4, _BaseNetwork): @@ -2156,8 +2151,6 @@ class IPv6Interface(IPv6Address): def is_loopback(self): return self._ip == 1 and self.network.is_loopback - __class_getitem__ = classmethod(types.GenericAlias) - class IPv6Network(_BaseV6, _BaseNetwork): |