cpython/Misc/NEWS.d/next
Greg Price 9ece4a5057 Unmark files as executable that can't actually be executed. (GH-15353)
There are plenty of legitimate scripts in the tree that begin with a
`#!`, but also a few that seem to be marked executable by mistake.

Found them with this command -- it gets executable files known to Git,
filters to the ones that don't start with a `#!`, and then unmarks
them as executable:

    $ git ls-files --stage \
      | perl -lane 'print $F[3] if (!/^100644/)' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          || chmod a-x "$f"; \
        done

Looking at the list by hand confirms that we didn't sweep up any
files that should have the executable bit after all.  In particular

 * The `.psd` files are images from Photoshop.

 * The `.bat` files sure look like things that can be run.
   But we have lots of other `.bat` files, and they don't have
   this bit set, so it must not be needed for them.



Automerge-Triggered-By: @benjaminp
2019-08-20 21:53:59 -07:00
..
Build bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) 2019-07-30 11:08:18 -07:00
C API bpo-37540: vectorcall: keyword names must be strings (GH-14682) 2019-08-16 03:41:27 -07:00
Core and Builtins bpo-15913: Implement PyBuffer_SizeFromFormat() (GH-13873) 2019-08-20 15:46:36 +01:00
Documentation Unmark files as executable that can't actually be executed. (GH-15353) 2019-08-20 21:53:59 -07:00
IDLE bpo-37849: IDLE: fix completion window positioning above line (GH-15267) 2019-08-14 13:06:06 -04:00
Library bpo-32793: Fix a duplicate debug message in smtplib (GH-15341) 2019-08-20 10:52:25 -07:00
macOS bpo-18049: Sync thread stack size to main thread size on macOS (GH-14748) 2019-08-01 07:43:07 +02:00
Security Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
Tests Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
Tools-Demos bpo-37704: Remove Tools/scripts/h2py.py (GH-15000) 2019-07-30 17:45:09 +02:00
Windows bpo-36266: Add module name in ImportError when DLL not found on Windows (GH-15180) 2019-08-17 13:50:39 -07:00