jenkins-bot submitted this change.

View Change

Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
Fix some spelling mistakes

Change-Id: If6060f720f46ae71a426be01679e78f683174752
---
M pywikibot/date.py
M tests/file_tests.py
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pywikibot/date.py b/pywikibot/date.py
index 09d7caf..ef12fff 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -708,7 +708,7 @@


def _en_period(period: str):
- """Create century and millenium format function for ``en`` language."""
+ """Create century and millennium format function for ``en`` language."""
return lambda m: multi(m, [
(lambda v: dh_centuryAD(v, '%dst ' + period),
lambda p: p == 1 or (p > 20 and p % 10 == 1)),
@@ -720,7 +720,7 @@


def _period_with_pattern(period: str, pattern: str):
- """Create century and millenium format function with pattern."""
+ """Create century and millennium format function with pattern."""
return lambda m: multi(m, [
(lambda v: dh_constVal(v, 1, period), lambda p: p == 1),
(lambda v: dh(v, pattern, lambda i: i - 1, lambda ii: ii[0] + 1),
diff --git a/tests/file_tests.py b/tests/file_tests.py
index f411ca4..f55d73c 100755
--- a/tests/file_tests.py
+++ b/tests/file_tests.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""FilePage tests."""
#
-# (C) Pywikibot team, 2014-2023
+# (C) Pywikibot team, 2014-2024
#
# Distributed under the terms of the MIT license.
#
@@ -259,7 +259,7 @@
self.assertEqual(self.image.latest_file_info.thumbwidth, 100)
self.assertEqual(self.image.latest_file_info.thumbheight, 133)

- def test_get_file_url_thumburl_from_heigth(self):
+ def test_get_file_url_thumburl_from_height(self):
"""Get File thumburl from height."""
self.assertTrue(self.image.exists())
# url_param has no precedence over height/width.

To view, visit change 1036094. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If6060f720f46ae71a426be01679e78f683174752
Gerrit-Change-Number: 1036094
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged