]> granicus.if.org Git - python/commit
[3.7] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Mar 2018 17:52:28 +0000 (10:52 -0700)
committerChristian Heimes <christian@python.org>
Wed, 14 Mar 2018 17:52:28 +0000 (18:52 +0100)
commit6e65e4462692cbf4461c307a411af7cf40a1ca4a
treea90b9825329b0d3dcfbdb1473ee22c09917c8983
parent7d0528dd3f054b47d6689c1dd75ef267a72e9bb5
[3.7] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772) (#6103)

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.
(cherry picked from commit 5affd5c29eb1493cb31ef3cfdde15538ac134689)

Co-authored-by: Miro HronĨok <miro@hroncok.cz>
Misc/ACKS
Misc/NEWS.d/next/Tools-Demos/2018-02-20-12-16-47.bpo-32885.dL5x7C.rst [new file with mode: 0644]
Tools/scripts/pathfix.py