bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (#5772)

Creating backup files with ~ suffix can be undesirable in some environment,
such as when building RPM packages. Instead of requiring the user to remove
those files manually, option -n was added, that simply disables this feature.

-n was selected because 2to3 has the same option with this behavior.
This commit is contained in:
Miro Hrončok 2018-03-13 10:56:43 +01:00 committed by Christian Heimes
parent b51f5de711
commit 5affd5c29e
3 changed files with 23 additions and 8 deletions

View file

@ -687,6 +687,7 @@ Ken Howard
Brad Howes
Mike Hoy
Ben Hoyt
Miro Hrončok
Chiu-Hsiang Hsu
Chih-Hao Huang
Christian Hudon

View file

@ -0,0 +1,2 @@
Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disbale automatic
backup creation (files with ``~`` suffix).