summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-07-26 22:11:55 (GMT)
committerGitHub <noreply@github.com>2021-07-26 22:11:55 (GMT)
commit11749e2dc20ad6a76e9a39e948853e89b2b4bbed (patch)
tree7b370ec4036b21ae99ca0b46c1d82ac122f9d43f /Lib
parent6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931 (diff)
downloadcpython-11749e2dc20ad6a76e9a39e948853e89b2b4bbed.zip
cpython-11749e2dc20ad6a76e9a39e948853e89b2b4bbed.tar.gz
cpython-11749e2dc20ad6a76e9a39e948853e89b2b4bbed.tar.bz2
bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/base_events.py2
-rw-r--r--Lib/cgitb.py4
-rw-r--r--Lib/idlelib/help.html2
-rw-r--r--Lib/logging/handlers.py4
-rwxr-xr-xLib/pydoc.py12
-rwxr-xr-xLib/smtplib.py2
-rw-r--r--Lib/test/mime.types6
-rw-r--r--Lib/test/support/__init__.py4
-rw-r--r--Lib/test/support/socket_helper.py2
-rw-r--r--Lib/test/test_logging.py2
-rw-r--r--Lib/test/test_ssl.py2
-rw-r--r--Lib/test/test_urllib2net.py2
-rwxr-xr-xLib/webbrowser.py2
13 files changed, 23 insertions, 23 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 74d5670..125d32d 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -968,7 +968,7 @@ class BaseEventLoop(events.AbstractEventLoop):
happy_eyeballs_delay=None, interleave=None):
"""Connect to a TCP server.
- Create a streaming transport connection to a given Internet host and
+ Create a streaming transport connection to a given internet host and
port: socket family AF_INET or socket.AF_INET6 depending on host (or
family if specified), socket type SOCK_STREAM. protocol_factory must be
a callable returning a protocol instance.
diff --git a/Lib/cgitb.py b/Lib/cgitb.py
index 4f81271..17ddda3 100644
--- a/Lib/cgitb.py
+++ b/Lib/cgitb.py
@@ -181,8 +181,8 @@ function calls leading up to the error, in the order they occurred.</p>'''
<!-- The above is a description of an error in a Python program, formatted
- for a Web browser because the 'cgitb' module was enabled. In case you
- are not reading this in a Web browser, here is the original traceback:
+ for a web browser because the 'cgitb' module was enabled. In case you
+ are not reading this in a web browser, here is the original traceback:
%s
-->
diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html
index 19041c6..2b1c2af 100644
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -803,7 +803,7 @@ re-enable the mainloop call when running in standard Python.</p>
<h3>Running without a subprocess<a class="headerlink" href="#running-without-a-subprocess" title="Permalink to this headline">¶</a></h3>
<p>By default, IDLE executes user code in a separate subprocess via a socket,
which uses the internal loopback interface. This connection is not
-externally visible and no data is sent to or received from the Internet.
+externally visible and no data is sent to or received from the internet.
If firewall software complains anyway, you can ignore it.</p>
<p>If the attempt to make the socket connection fails, Idle will notify you.
Such failures are sometimes transient, but if persistent, the problem
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index e933f1b..9506b9a 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -1147,7 +1147,7 @@ class NTEventLogHandler(logging.Handler):
class HTTPHandler(logging.Handler):
"""
- A class which sends records to a Web server, using either GET or
+ A class which sends records to a web server, using either GET or
POST semantics.
"""
def __init__(self, host, url, method="GET", secure=False, credentials=None,
@@ -1196,7 +1196,7 @@ class HTTPHandler(logging.Handler):
"""
Emit a record.
- Send the record to the Web server as a percent-encoded dictionary
+ Send the record to the web server as a percent-encoded dictionary
"""
try:
import urllib.parse
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 8eecd66..1603618 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -23,7 +23,7 @@ Run "pydoc -p <port>" to start an HTTP server on the given port on the
local machine. Port number 0 can be used to get an arbitrary unused port.
Run "pydoc -b" to start an HTTP server on an arbitrary unused port and
-open a Web browser to interactively browse documentation. Combine with
+open a web browser to interactively browse documentation. Combine with
the -n and -p options to control the hostname and port used.
Run "pydoc -w <name>" to write out the HTML documentation for a module
@@ -2065,7 +2065,7 @@ has the same effect as typing a particular string at the help> prompt.
Welcome to Python {0}'s help utility!
If this is your first time using Python, you should definitely check out
-the tutorial on the Internet at https://docs.python.org/{0}/tutorial/.
+the tutorial on the internet at https://docs.python.org/{0}/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
@@ -2279,13 +2279,13 @@ def apropos(key):
warnings.filterwarnings('ignore') # ignore problems during import
ModuleScanner().run(callback, key, onerror=onerror)
-# --------------------------------------- enhanced Web browser interface
+# --------------------------------------- enhanced web browser interface
def _start_server(urlhandler, hostname, port):
"""Start an HTTP server thread on a specific port.
Start an HTML/text server thread, so HTML or text documents can be
- browsed dynamically and interactively with a Web browser. Example use:
+ browsed dynamically and interactively with a web browser. Example use:
>>> import time
>>> import pydoc
@@ -2671,7 +2671,7 @@ def _url_handler(url, content_type="text/html"):
def browse(port=0, *, open_browser=True, hostname='localhost'):
- """Start the enhanced pydoc Web server and open a Web browser.
+ """Start the enhanced pydoc web server and open a web browser.
Use port '0' to start the server on an arbitrary port.
Set open_browser to False to suppress opening a browser.
@@ -2823,7 +2823,7 @@ def cli():
number 0 can be used to get an arbitrary unused port.
{cmd} -b
- Start an HTTP server on an arbitrary unused port and open a Web browser
+ Start an HTTP server on an arbitrary unused port and open a web browser
to interactively browse documentation. This option can be used in
combination with -n and/or -p.
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index bfba5c8..7e984e8 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -168,7 +168,7 @@ def quotedata(data):
"""Quote data for email.
Double leading '.', and change Unix newline '\\n', or Mac '\\r' into
- Internet CRLF end-of-line.
+ internet CRLF end-of-line.
"""
return re.sub(r'(?m)^\.', '..',
re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
diff --git a/Lib/test/mime.types b/Lib/test/mime.types
index 6872443..eb39a17 100644
--- a/Lib/test/mime.types
+++ b/Lib/test/mime.types
@@ -1,11 +1,11 @@
# This is a comment. I love comments. -*- indent-tabs-mode: t -*-
-# This file controls what Internet media types are sent to the client for
+# This file controls what internet media types are sent to the client for
# given file extension(s). Sending the correct media type to the client
# is important so they know how to handle the content of the file.
# Extra types can either be added here or by using an AddType directive
-# in your config files. For more information about Internet media types,
-# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type
+# in your config files. For more information about internet media types,
+# please read RFC 2045, 2046, 2047, 2048, and 2077. The internet media type
# registry is at <http://www.iana.org/assignments/media-types/>.
# IANA types
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index cbdc23c..e2847d5 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -74,8 +74,8 @@ if sys.platform == 'win32' and ' 32 bit (ARM)' in sys.version:
elif sys.platform == 'vxworks':
LOOPBACK_TIMEOUT = 10
-# Timeout in seconds for network requests going to the Internet. The timeout is
-# short enough to prevent a test to wait for too long if the Internet request
+# Timeout in seconds for network requests going to the internet. The timeout is
+# short enough to prevent a test to wait for too long if the internet request
# is blocked for whatever reason.
#
# Usually, a timeout using INTERNET_TIMEOUT should not mark a test as failed,
diff --git a/Lib/test/support/socket_helper.py b/Lib/test/support/socket_helper.py
index e78712b..b516773 100644
--- a/Lib/test/support/socket_helper.py
+++ b/Lib/test/support/socket_helper.py
@@ -189,7 +189,7 @@ _NOT_SET = object()
@contextlib.contextmanager
def transient_internet(resource_name, *, timeout=_NOT_SET, errnos=()):
"""Return a context manager that raises ResourceDenied when various issues
- with the Internet connection manifest themselves as exceptions."""
+ with the internet connection manifest themselves as exceptions."""
import nntplib
import urllib.error
if timeout is _NOT_SET:
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 94c3fd9..b3393d3 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -891,7 +891,7 @@ class ControlMixin(object):
single parameter - the request - in order to
process the request. This handler is called on the
server thread, effectively meaning that requests are
- processed serially. While not quite Web scale ;-),
+ processed serially. While not quite web scale ;-),
this should be fine for testing applications.
:param poll_interval: The polling interval in seconds.
"""
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 0cd3fb4..d9e1843 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -66,7 +66,7 @@ def data_file(*name):
# The custom key and certificate files used in test_ssl are generated
# using Lib/test/make_ssl_certs.py.
-# Other certificates are simply fetched from the Internet servers they
+# Other certificates are simply fetched from the internet servers they
# are meant to authenticate.
CERTFILE = data_file("keycert.pem")
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index 4750ad9..aa41811 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -67,7 +67,7 @@ class TransientResource(object):
raise ResourceDenied("an optional resource is not available")
# Context managers that raise ResourceDenied when various issues
-# with the Internet connection manifest themselves as exceptions.
+# with the internet connection manifest themselves as exceptions.
# XXX deprecate these and use transient_internet() instead
time_out = TransientResource(OSError, errno=errno.ETIMEDOUT)
socket_peer_reset = TransientResource(OSError, errno=errno.ECONNRESET)
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index e980497..ec3cece 100755
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -1,5 +1,5 @@
#! /usr/bin/env python3
-"""Interfaces for launching and remotely controlling Web browsers."""
+"""Interfaces for launching and remotely controlling web browsers."""
# Maintained by Georg Brandl.
import os