Skip to content

Commit 2024080

Browse files
chrstphrchvzpull[bot]
authored andcommitted
Change 'dependant' to 'dependent' (#103745)
The word 'dependent' is both an adjective and a noun. A 'dependant' is a British alternative spelling for the noun form. In idlelib.sidebar, 'OS-dependant' is an adjective and clearly wrong. In 'Using', 'dependant' as a noun would be acceptable in Britain, but we use American spellings in Python docs. https://www.merriam-webster.com/words-at-play/spelling-variants-dependent-vs-dependant
1 parent e2b8af3 commit 2024080

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/using/windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ user's system, including environment variables, system registry settings, and
470470
installed packages. The standard library is included as pre-compiled and
471471
optimized ``.pyc`` files in a ZIP, and ``python3.dll``, ``python37.dll``,
472472
``python.exe`` and ``pythonw.exe`` are all provided. Tcl/tk (including all
473-
dependants, such as Idle), pip and the Python documentation are not included.
473+
dependents, such as Idle), pip and the Python documentation are not included.
474474

475475
.. note::
476476

Lib/idlelib/idle_test/test_sidebar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def test_scroll(self):
328328
self.assertEqual(self.linenumber.sidebar_text.index('@0,0'), '11.0')
329329

330330
# Generate a mouse-wheel event and make sure it scrolled up or down.
331-
# The meaning of the "delta" is OS-dependant, so this just checks for
331+
# The meaning of the "delta" is OS-dependent, so this just checks for
332332
# any change.
333333
self.linenumber.sidebar_text.event_generate('<MouseWheel>',
334334
x=0, y=0,
@@ -691,7 +691,7 @@ def test_mousewheel(self):
691691
self.assertIsNotNone(text.dlineinfo(text.index(f'{last_lineno}.0')))
692692

693693
# Scroll up using the <MouseWheel> event.
694-
# The meaning delta is platform-dependant.
694+
# The meaning of delta is platform-dependent.
695695
delta = -1 if sys.platform == 'darwin' else 120
696696
sidebar.canvas.event_generate('<MouseWheel>', x=0, y=0, delta=delta)
697697
yield

0 commit comments

Comments
 (0)