diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-18 04:54:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 04:54:51 (GMT) |
commit | f14e8eaaa52f799958e77b426283df0f69a81725 (patch) | |
tree | 87b7917408badff09863afe0226c70f5d5bd4a24 /Doc/library/re.rst | |
parent | 25531fb7b8338a21cdcdf2ce0f981d781d21641f (diff) | |
download | cpython-f14e8eaaa52f799958e77b426283df0f69a81725.zip cpython-f14e8eaaa52f799958e77b426283df0f69a81725.tar.gz cpython-f14e8eaaa52f799958e77b426283df0f69a81725.tar.bz2 |
bpo-33892: Doc: Use gender neutral words (GH-7770)
(cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 14360ed..82632b9 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -1426,8 +1426,8 @@ Finding all Adverbs ^^^^^^^^^^^^^^^^^^^ :func:`findall` matches *all* occurrences of a pattern, not just the first -one as :func:`search` does. For example, if one was a writer and wanted to -find all of the adverbs in some text, he or she might use :func:`findall` in +one as :func:`search` does. For example, if a writer wanted to +find all of the adverbs in some text, they might use :func:`findall` in the following manner:: >>> text = "He was carefully disguised but captured quickly by police." @@ -1441,8 +1441,8 @@ Finding all Adverbs and their Positions If one wants more information about all matches of a pattern than the matched text, :func:`finditer` is useful as it provides :ref:`match objects <match-objects>` instead of strings. Continuing with the previous example, if -one was a writer who wanted to find all of the adverbs *and their positions* in -some text, he or she would use :func:`finditer` in the following manner:: +a writer wanted to find all of the adverbs *and their positions* in +some text, they would use :func:`finditer` in the following manner:: >>> text = "He was carefully disguised but captured quickly by police." >>> for m in re.finditer(r"\w+ly", text): |