]> granicus.if.org Git - python/commit
#14814: Use correct comparison for IP addresses
authorHynek Schlawack <hs@ox.cx>
Mon, 4 Jun 2012 12:19:39 +0000 (14:19 +0200)
committerHynek Schlawack <hs@ox.cx>
Mon, 4 Jun 2012 12:19:39 +0000 (14:19 +0200)
commitbcd304480f16f3f936a7bdbff4dfab41f8e30292
tree3cd394791b9352fc3fca8a4f106fa1f375f1ce9c
parent7d74effc67281b505756e040437241e5b1436a7c
#14814: Use correct comparison for IP addresses

ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which
fails.
Lib/ipaddress.py
Lib/test/test_ipaddress.py