]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix duplicated words 'begins with a' in pathlib docstring (#122732)
authorВиталий Дмитриев <vitaldmit@bk.ru>
Tue, 6 Aug 2024 17:38:33 +0000 (20:38 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 17:38:33 +0000 (18:38 +0100)
Lib/pathlib/_abc.py

index c32e7762cefea30136a1df226ed2dd9fddc4a8bf..ee903177aa10d48cbd167f360a2311fbe242c2c1 100644 (file)
@@ -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()'))