Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8576ca1

Browse files
committed
Merge from 3.5
2 parents 5a44fa1 + 6bbc839 commit 8576ca1

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Doc/library/ipaddress.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ This is the full module API reference—for an overview and introduction, see
2424

2525
.. versionadded:: 3.3
2626

27+
.. testsetup::
28+
>>> import ipaddress
29+
>>> from ipaddress import (ip_network, IPv4Address, IPv4Interface,
30+
... IPv4Network)
2731

2832
Convenience factory functions
2933
-----------------------------
@@ -39,13 +43,6 @@ IP addresses, networks and interfaces:
3943
A :exc:`ValueError` is raised if *address* does not represent a valid IPv4
4044
or IPv6 address.
4145

42-
.. testsetup::
43-
>>> import ipaddress
44-
>>> from ipaddress import (ip_network, IPv4Address, IPv4Interface,
45-
... IPv4Network)
46-
47-
::
48-
4946
>>> ipaddress.ip_address('192.168.0.1')
5047
IPv4Address('192.168.0.1')
5148
>>> ipaddress.ip_address('2001:db8::')

0 commit comments

Comments
 (0)