[Python-Dev] [PATCH] Make 2to3 --write preserve file mode (eg. execution bit)

Adeodato Simó dato at net.com.org.es
Mon Dec 8 19:51:57 CET 2008


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.

Many thanks in advance!

P.S.: Please CC me on replies.

Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
                            Listening to: Manolo García - Prendí la flor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2to3_preserve_mode.diff
Type: text/x-diff
Size: 584 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20081208/747f7773/attachment.diff>

More information about the Python-Dev mailing list