Skip to content

Commit cef3a99

Browse files
gh-91611: Use example.com for documentation, not mydomain.com (GH-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. (cherry picked from commit ea39246) Co-authored-by: Motoki Naruse <motoki@naru.se>
1 parent 2e84e97 commit cef3a99

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
@@ -2345,7 +2345,7 @@ waiting for clients to connect::
23452345
context.load_cert_chain(certfile="mycertfile", keyfile="mykeyfile")
23462346

23472347
bindsocket = socket.socket()
2348-
bindsocket.bind(('myaddr.mydomain.com', 10023))
2348+
bindsocket.bind(('myaddr.example.com', 10023))
23492349
bindsocket.listen(5)
23502350

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

0 commit comments

Comments
 (0)