Merge pull request #38101 from lorengordon/file-replace-note

Clarifies file.replace behavior on symlinks
This commit is contained in:
Mike Place 2016-12-07 06:27:11 -07:00 committed by GitHub
commit da8f5ac0c6
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