Skip to content

Commit ea39246

Browse files
authored
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.
1 parent 567be05 commit ea39246

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/secrets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ suitable for password recovery applications:
193193
.. testcode::
194194

195195
import secrets
196-
url = 'https://mydomain.com/reset=' + secrets.token_urlsafe()
196+
url = 'https://example.com/reset=' + secrets.token_urlsafe()
197197

198198

199199

Doc/library/ssl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ waiting for clients to connect::
23572357
context.load_cert_chain(certfile="mycertfile", keyfile="mykeyfile")
23582358

23592359
bindsocket = socket.socket()
2360-
bindsocket.bind(('myaddr.mydomain.com', 10023))
2360+
bindsocket.bind(('myaddr.example.com', 10023))
23612361
bindsocket.listen(5)
23622362

23632363
When a client connects, you'll call :meth:`accept` on the socket to get the

0 commit comments

Comments
 (0)