Clarifies file.replace behavior on symlinks

This commit is contained in:
Loren Gordon 2016-12-06 10:56:45 -05:00
parent f8c67a9598
commit 345990f2b0
2 changed files with 4 additions and 2 deletions

View file

@ -1857,7 +1857,8 @@ def replace(path,
This is a pure Python implementation that wraps Python's :py:func:`~re.sub`.
path
Filesystem path to the file to be edited
Filesystem path to the file to be edited. If a symlink is specified, it
will be resolved to its target.
pattern
A regular expression, to be matched using Python's

View file

@ -3218,7 +3218,8 @@ def replace(name,
.. versionadded:: 0.17.0
name
Filesystem path to the file to be edited.
Filesystem path to the file to be edited. If a symlink is specified, it
will be resolved to its target.
pattern
A regular expression, to be matched using Python's