[New-bugs-announce] [issue4602] 2to3 drops executable bit with --write

Adeodato Simó report at bugs.python.org
Mon Dec 8 22:42:11 CET 2008

New submission from Adeodato Simó <dato at net.com.org.es>:


after using 2to3 --write over some scripts, I found it very cumbersome
having to run `chmod +x` on each of them afterwards.

The attached patch is a possible way to fix this issue. It'd be great 
if somebody could apply it, or write a more appropriate fix.

components: 2to3 (2.x to 3.0 conversion tool)
files: 2to3_preserve_mode.diff
keywords: patch
messages: 77349
nosy: dato
severity: normal
status: open
title: 2to3 drops executable bit with --write
versions: Python 3.0
Added file: http://bugs.python.org/file12291/2to3_preserve_mode.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list