mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-91611: Use example.com for documentation, not mydomain.com (#91613)
example.com is reserved by the IANA as special-use domain name for documentation purposes. The domain names are used widely in books, tutorials, sample network configurations, and generally as examples for the use of domain name. On the other hand, mydomain.com is real Domain Name Registration service.
This commit is contained in:
parent
567be058b4
commit
ea39246782
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ suitable for password recovery applications:
|
|||
.. testcode::
|
||||
|
||||
import secrets
|
||||
url = 'https://mydomain.com/reset=' + secrets.token_urlsafe()
|
||||
url = 'https://example.com/reset=' + secrets.token_urlsafe()
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -2357,7 +2357,7 @@ waiting for clients to connect::
|
|||
context.load_cert_chain(certfile="mycertfile", keyfile="mykeyfile")
|
||||
|
||||
bindsocket = socket.socket()
|
||||
bindsocket.bind(('myaddr.mydomain.com', 10023))
|
||||
bindsocket.bind(('myaddr.example.com', 10023))
|
||||
bindsocket.listen(5)
|
||||
|
||||
When a client connects, you'll call :meth:`accept` on the socket to get the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue