]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #10419: Fix build_scripts command of distutils to handle correctly
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 10 May 2011 22:57:29 +0000 (00:57 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 10 May 2011 22:57:29 +0000 (00:57 +0200)
commitba9c6645f795c7bf82ee097a240cbd060605afe7
treeb0df120024a541db1ef5f8a75f581be160712523
parent136726537ffd92b0f3e8dabb23023ed514852e2e
Issue #10419: Fix build_scripts command of distutils to handle correctly
non-ASCII scripts. Open and write the script in binary mode, but ensure that
the shebang is decodable from UTF-8 and from the encoding of the script.
Lib/distutils/command/build_scripts.py
Misc/NEWS