diff --git a/Doc/howto/ipaddress.rst b/Doc/howto/ipaddress.rst index ebbf1521d11..f855df8cfe0 100644 --- a/Doc/howto/ipaddress.rst +++ b/Doc/howto/ipaddress.rst @@ -288,4 +288,4 @@ you can still do the following:: try: ipaddress.IPv4Address(address) except ValueError: - print 'address/netmask is invalid: %s' % address + print('address/netmask is invalid:', address)