Minor documentation tweak for file.replace state

Using a tilde with `:py:func:` causes it to display only the function
name and not the entire `modulepath.funcname` as the link text. This
means that it says `search()` instead of `re.search()`. While this is
still a hyperlink that goes directly to the upstream Python
documentation, using the full name as the link text should help
alleviate confusion.
This commit is contained in:
Erik Johnson 2019-03-07 12:35:47 -06:00
parent 7ab1281a7d
commit 4d82146f8c

View file

@ -4189,7 +4189,7 @@ def replace(name,
pattern
A regular expression, to be matched using Python's
:py:func:`~re.search`.
:py:func:`re.search`.
.. note::