]> granicus.if.org Git - python/commit
[3.6] 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:22 +0000 (10:52 -0700)
committerChristian Heimes <christian@python.org>
Wed, 14 Mar 2018 17:52:22 +0000 (18:52 +0100)
commita954919788f2130076e4f9dd91e9eccf69540f7a
tree7dface20a0b3818084632cc4887c3c02d4c12019
parent0ec0290a075ad3ac7d9990efd701c81da16293c0
[3.6] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772) (#6104)

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