From: Виталий Дмитриев Date: Tue, 6 Aug 2024 17:38:33 +0000 (+0300) Subject: Fix duplicated words 'begins with a' in pathlib docstring (#122732) X-Git-Tag: v3.14.0a1~865 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4e8196940bdf2eeb45692fb54741c507766bc74;p=thirdparty%2FPython%2Fcpython.git Fix duplicated words 'begins with a' in pathlib docstring (#122732) --- diff --git a/Lib/pathlib/_abc.py b/Lib/pathlib/_abc.py index c32e7762cefe..ee903177aa10 100644 --- a/Lib/pathlib/_abc.py +++ b/Lib/pathlib/_abc.py @@ -63,7 +63,7 @@ class ParserBase: def splitext(self, path): """Split the path into a pair (root, ext), where *ext* is empty or - begins with a begins with a period and contains at most one period, + begins with a period and contains at most one period, and *root* is everything before the extension.""" raise UnsupportedOperation(self._unsupported_msg('splitext()'))