]> granicus.if.org Git - python/commit
bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836)
authorInada Naoki <songofacandy@gmail.com>
Mon, 15 Apr 2019 23:32:28 +0000 (08:32 +0900)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2019 23:32:28 +0000 (08:32 +0900)
commit6fa84bd12c4b83bee6a41b989363230d5c03b96c
tree846220dfd35742385323c4dc2742edc3b6ed7a29
parent74125a60b7a477451ff2b8385bfbce3fdaee8dbc
bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836)

IPv4Interface and IPv6Interface did not has netmask and hostmask
attributes when its argument is bytes or int.

This commit extracts method for constructors of Network and Interface,
and ensure Interface class always provides them.
Lib/ipaddress.py
Lib/test/test_ipaddress.py