<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Tools/scripts, branch fix-namedexpr-comment</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)</title>
<updated>2019-10-11T13:36:50+00:00</updated>
<author>
<name>Ruediger Pluem</name>
<email>r.pluem@gmx.de</email>
</author>
<published>2019-10-11T13:36:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2b7dc40b2af6578181808ba73c1533fc114e55df'/>
<id>2b7dc40b2af6578181808ba73c1533fc114e55df</id>
<content type='text'>
 pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively. </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively. </pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37064: Add option -a to pathfix.py tool (GH-15717)</title>
<updated>2019-09-25T12:26:28+00:00</updated>
<author>
<name>PatrikKopkan</name>
<email>kopkanpatrik@gmail.com</email>
</author>
<published>2019-09-25T12:26:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=1dc1acbd73f05f14c974b7ce1041787d7abef31e'/>
<id>1dc1acbd73f05f14c974b7ce1041787d7abef31e</id>
<content type='text'>
Add option -a to Tools/Scripts/pathfix.py script: add flags.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add option -a to Tools/Scripts/pathfix.py script: add flags.</pre>
</div>
</content>
</entry>
<entry>
<title>Mark files as executable that are meant as scripts. (GH-15354)</title>
<updated>2019-09-09T14:16:33+00:00</updated>
<author>
<name>Greg Price</name>
<email>gnprice@gmail.com</email>
</author>
<published>2019-09-09T14:16:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fa3a38d81faaf96d17b5a7f0248b9923e3a648cc'/>
<id>fa3a38d81faaf96d17b5a7f0248b9923e3a648cc</id>
<content type='text'>
This is the converse of GH-15353 -- in addition to plenty of
scripts in the tree that are marked with the executable bit
(and so can be directly executed), there are a few that have
a leading `#!` which could let them be executed, but it doesn't
do anything because they don't have the executable bit set.

Here's a command which finds such files and marks them.  The
first line finds files in the tree with a `#!` line *anywhere*;
the next-to-last step checks that the *first* line is actually of
that form.  In between we filter out files that already have the
bit set, and some files that are meant as fragments to be
consumed by one or another kind of preprocessor.

    $ git grep -l '^#!' \
      | grep -vxFf &lt;( \
          git ls-files --stage \
          | perl -lane 'print $F[3] if (!/^100644/)' \
        ) \
      | grep -ve '\.in$' -e '^Doc/includes/' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          &amp;&amp; chmod a+x "$f"; \
        done</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the converse of GH-15353 -- in addition to plenty of
scripts in the tree that are marked with the executable bit
(and so can be directly executed), there are a few that have
a leading `#!` which could let them be executed, but it doesn't
do anything because they don't have the executable bit set.

Here's a command which finds such files and marks them.  The
first line finds files in the tree with a `#!` line *anywhere*;
the next-to-last step checks that the *first* line is actually of
that form.  In between we filter out files that already have the
bit set, and some files that are meant as fragments to be
consumed by one or another kind of preprocessor.

    $ git grep -l '^#!' \
      | grep -vxFf &lt;( \
          git ls-files --stage \
          | perl -lane 'print $F[3] if (!/^100644/)' \
        ) \
      | grep -ve '\.in$' -e '^Doc/includes/' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          &amp;&amp; chmod a+x "$f"; \
        done</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548)</title>
<updated>2019-09-05T14:54:54+00:00</updated>
<author>
<name>PatrikKopkan</name>
<email>kopkanpatrik@gmail.com</email>
</author>
<published>2019-09-05T14:54:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=50254ac4c179cb412e90682098c97db786143929'/>
<id>50254ac4c179cb412e90682098c97db786143929</id>
<content type='text'>
Add flag -k to pathscript.py script: preserve shebang flags.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add flag -k to pathscript.py script: preserve shebang flags.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37704: Remove Tools/scripts/h2py.py (GH-15000)</title>
<updated>2019-07-30T15:45:09+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-07-30T15:45:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=27eeaf0f2c9bd53a0fbdfdf38ee759e971221f8d'/>
<id>27eeaf0f2c9bd53a0fbdfdf38ee759e971221f8d</id>
<content type='text'>
Use cffi to access a C API in Python.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use cffi to access a C API in Python.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-14546: Fix the argument handling in Tools/scripts/lll.py (GH-13026)</title>
<updated>2019-05-02T15:03:43+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2019-05-02T15:03:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c4e78b116f9a4299f3b3bfbbd18ef49782bb1143'/>
<id>c4e78b116f9a4299f3b3bfbbd18ef49782bb1143</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36345: Update wsgiref example (GH-12562)</title>
<updated>2019-04-16T12:52:54+00:00</updated>
<author>
<name>Stéphane Wirtel</name>
<email>stephane@wirtel.be</email>
</author>
<published>2019-04-16T12:52:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2b7f93b99afbe78e4e567d9252d9470d29f387c8'/>
<id>2b7f93b99afbe78e4e567d9252d9470d29f387c8</id>
<content type='text'>
Use literalinclude markup to include Tools/scripts/serve.py code.
Tools/scripts/serve.py first argument on the command line is now optional.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use literalinclude markup to include Tools/scripts/serve.py code.
Tools/scripts/serve.py first argument on the command line is now optional.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-22831: Use "with" to avoid possible fd leaks in tools (part 2). (GH-10927)</title>
<updated>2019-03-30T06:33:02+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-03-30T06:33:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=172bb39452ae8b3ccdf5d1f23ead46f44200cd49'/>
<id>172bb39452ae8b3ccdf5d1f23ead46f44200cd49</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-22831: Use "with" to avoid possible fd leaks in tools (part 1). (GH-10926)</title>
<updated>2019-03-30T06:32:18+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-03-30T06:32:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=afbb7a371fb44edc731344eab5b474ad8f7b57d7'/>
<id>afbb7a371fb44edc731344eab5b474ad8f7b57d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35884: Add string-keys-only microbenchmark for dict access to var_access_benchmark.py (GH-11905)</title>
<updated>2019-03-25T08:20:53+00:00</updated>
<author>
<name>Stefan Behnel</name>
<email>stefan_ml@behnel.de</email>
</author>
<published>2019-03-25T08:20:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=68d228f174ceed151200e7e0b44ffc5edd4e0ea2'/>
<id>68d228f174ceed151200e7e0b44ffc5edd4e0ea2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
