summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-14546: Fix the argument handling in Tools/scripts/lll.py ↵Zackery Spytz2019-05-021-4/+3
| | | | | (GH-13026) (GH-13063) (cherry picked from commit c4e78b116f9a4299f3b3bfbbd18ef49782bb1143)
* [2.7] bpo-35133: Fix mistakes when concatenate string literals on different ↵Serhiy Storchaka2018-11-051-2/+2
| | | | | | | | | | | | lines. (GH-10284) (GH-10335) (GH-10336) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings. (cherry picked from commit 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d) (cherry picked from commit 7054e5c80b6e98cd44e22d1bc2d7f0a94343089d)
* bpo-34500: Fix ResourceWarning in difflib.py (GH-8926)Mickaël Schoentgen2018-09-031-2/+4
| | | | | The change to Tools/scripts/diff.py effectively backports part of a2637729f23dc993e820fd92f0d1759ad714c9b2. The test code changed in Doc/library/difflib.rst is not present in current 3.x.
* [2.7] remove hg support from patchcheck (GH-7440). (GH-7444)Benjamin Peterson2018-06-061-28/+3
| | | (cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8)
* [2.7] Update `make patchcheck` for blurb and NEWS.d (GH-2381) (GH-6576)Antoine Pitrou2018-04-231-5/+5
| | | (cherry picked from commit 1ba9469)
* bpo-30109: Fix reindent.py for non-ASCII files. (#5637)Serhiy Storchaka2018-02-121-11/+29
| | | | | It now processes files as binary streams. This also fixes "make reindent".
* [2.7] bpo-31221: patchcheck ignores external libraries (#3109) (#3118)Victor Stinner2017-08-171-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-31221: patchcheck ignores external libraries (#3109) Tools/scripts/patchcheck.py now ignores changes in directories which are copies of external libraries: * Modules/_ctypes/libffi_msvc/ * Modules/_ctypes/libffi_osx/ * Modules/_decimal/libmpdec/ * Modules/expat/ * Modules/zlib/ Drop also support for Mercurial, since CPython migrated to Git. Exclude also libmpdec patchcheck: exclude also libffi_osx and libffi_msvc (cherry picked from commit 4a347ce426fe7381885703d9074d7a6b3aeb2f2b) * Exclude also Modules/_ctypes/libffi on Python 2.7 * Remove _decimal/libmpdec, not in Python 2.7
* Issue #29798: Handle git worktree in patchcheck (#1057)Nick Coghlan2017-04-091-1/+1
| | | | The original attempted fix missed an `isdir()` call in `get_base_branch()`.
* bpo-29798: Handle git worktree in `make patchcheck` (#629) (#635)Nick Coghlan2017-03-121-1/+4
| | | | | In git worktree directories, `.git` is a configuration file rather than a subdirectory (cherry picked from commit 6a6d090612dd7deaac2bc0399fad743e5e2db606)
* [2.7] bpo-29656: Handle PR branches in 'make patchcheck' (#302) (#628)Nick Coghlan2017-03-121-20/+74
| | | | | | | | | | Additional changes needed to backport: - dropped legacy SVN support from patchcheck - use subprocess.PIPE to silence expected error output - don't try to use subprocess.Popen as a context manager - don't try to pass a keyword argument to str.split() (cherry picked from commit 482f7a274fa52b7ba34ff308cd9acdcac9f41ba5)
* Issue #28515: Fixed py3k warnings.Serhiy Storchaka2016-10-251-4/+4
|
* Issue #27952: Get fixcid.py working with the re moduleMartin Panter2016-09-111-14/+16
|
* Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | Based on patch by Ville Skyttä.
* Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-1/+1
|
* Issue #25505: Remove unused buggy method.Terry Jan Reedy2015-10-301-2/+0
|
* Issue #23330: h2py now supports arbitrary filenames in #include.Serhiy Storchaka2015-05-031-1/+1
|
* delete old ftpmirror script, which now has security bugs (closes #23130)Benjamin Peterson2014-12-301-400/+0
|
* Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7Donald Stufft2014-11-111-0/+31
| | | | | | | | | | | | | | | | | | | * Backports ensurepip to the 2.7 branch * Backports some of the improved documentation to the 2.7 branch. * Adds a private backport of the 3.x mock library as test._mock_backport to enable saner testing of ensurepip. Key Differences from 3.x: * Ensurepip does not have any Makefile integration, specifically it is not ran by default in the Makefile. * There is no venv module in 2.7, so downstream distributors can completely disable ensurepip, ideally with a message redirecting to the correct way to install pip. * To match the ``python`` command in 2.7, ensurepip will install the unversioned ``pip`` command as well. * No-op and hide --default-pip and add --no-default-pip to restore the 3.x behavor on 2.7.
* Closes #22663: patchcheck: only modify text files under Doc/Georg Brandl2014-10-191-1/+2
|
* Issue #22221: Backported fixes from Python 3 (issue #18960).Serhiy Storchaka2014-09-051-1/+3
| | | | | | | | | | | | | * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. This affects compile(), eval() and exec() too. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-0/+0
| | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface.
* Remove the use of non-existing re.ASCII.Serhiy Storchaka2013-09-171-1/+1
| | | | (fixes a regression in 3d46ef0c62c5, issue #18873)
* Issue #18873: IDLE, 2to3, and the findnocoding.py script now detect PythonSerhiy Storchaka2013-09-161-3/+3
| | | | source code encoding only in comment lines.
* #18803: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-253-4/+4
|
* Issue #18439: Make patchcheck work on Windows for ACKS, NEWS.Terry Jan Reedy2013-07-221-5/+6
|
* Issue #17801: fix shebang line of gprof2html.pyNed Deily2013-04-201-1/+1
|
* - Issue #17029: Let h2py search the multiarch system include directory.doko@python.org2013-01-251-0/+6
|
* Issue #15539: Fix backup file creation in pindent.py on WindowsSerhiy Storchaka2013-01-111-12/+22
|
* Add a note about checking refleaks to patchcheck.Ezio Melotti2013-01-111-1/+2
|
* Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.Serhiy Storchaka2013-01-111-104/+60
| | | | | | | Now pindent.py works with a "with" statement. pindent.py no longer produces improper indentation. pindent.py now works with continued lines broken after "class" or "def" keywords and with continuations at the start of line. Added regression tests for pindent.py. Modernized pindent.py.
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | Patch by Serhiy Storchaka.
* Avoid SyntaxError in script using print functionÉric Araujo2012-07-021-0/+2
|
* Issue #14053: Fix "make patchcheck" to work with MQ.Nadeem Vawda2012-02-221-0/+16
| | | | Patch by Francisco Martín Brugué
* patchcheck: don’t talk about the test suite when no code file were changed.Éric Araujo2011-08-191-2/+3
| | | | | | The line about the test suite will still get printed for changes in Tools for example, which aren’t covered by the test suite, but it’s not a big deal IMO.
* Let “make patchcheck” work for out-of-dir builds (#9860)Éric Araujo2011-07-301-7/+13
|
* Branch mergeÉric Araujo2011-07-2913-0/+5
|\
| * Fix missing or shebangs and executable bits for scripts (#10318)Éric Araujo2011-07-2913-0/+5
| |
* | Fixes #10639: reindent.py should not convert newlinesJason R. Coombs2011-07-271-3/+14
|/ | | | Backport of changeset 070dc6e359fb, reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
* Minimal changes to make byext.py script work with Python 3 syntax.Guido van Rossum2011-06-281-13/+10
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Merged revisions 85768-85771,85773,85777,85823,85825 via svnmerge fromGeorg Brandl2010-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85768 | georg.brandl | 2010-10-21 14:59:14 +0200 (Do, 21 Okt 2010) | 1 line #9919: fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output. ........ r85769 | georg.brandl | 2010-10-21 15:01:23 +0200 (Do, 21 Okt 2010) | 1 line Fix missing import. ........ r85770 | georg.brandl | 2010-10-21 15:29:10 +0200 (Do, 21 Okt 2010) | 1 line #3077: fix h2py substitution of character literals. ........ r85771 | georg.brandl | 2010-10-21 15:34:51 +0200 (Do, 21 Okt 2010) | 1 line #1203650: allow larger list of files in windows makefile for freeze. ........ r85773 | georg.brandl | 2010-10-21 15:45:52 +0200 (Do, 21 Okt 2010) | 1 line #4829: better error message for invalid file mode ........ r85777 | georg.brandl | 2010-10-21 17:44:51 +0200 (Do, 21 Okt 2010) | 1 line Add .hgeol file for the Mercurial EOL extension. ........ r85823 | georg.brandl | 2010-10-24 16:32:45 +0200 (So, 24 Okt 2010) | 1 line Fix style. ........ r85825 | georg.brandl | 2010-10-24 17:16:02 +0200 (So, 24 Okt 2010) | 1 line Add documentation about the default warnings filters. ........
* Merged revisions 85766-85767 via svnmerge fromGeorg Brandl2010-11-263-58/+111
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85766 | georg.brandl | 2010-10-21 09:40:03 +0200 (Do, 21 Okt 2010) | 1 line #10159: sort completion matches before comparing to dir() result. ........ r85767 | georg.brandl | 2010-10-21 14:49:28 +0200 (Do, 21 Okt 2010) | 1 line #9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing. ........
* Merged revisions 83833,83838-83839,83859,83878 via svnmerge fromFlorent Xicluna2010-08-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83833 | florent.xicluna | 2010-08-08 18:25:27 +0200 (dim., 08 août 2010) | 2 lines Add test case for the HTTPResponse being an iterable. Follow-up of issue #4608. ........ r83838 | florent.xicluna | 2010-08-08 20:03:44 +0200 (dim., 08 août 2010) | 2 lines Typo. ........ r83839 | florent.xicluna | 2010-08-08 20:06:13 +0200 (dim., 08 août 2010) | 2 lines Issue #7564: Skip test_ioctl if another process is attached to /dev/tty. ........ r83859 | florent.xicluna | 2010-08-09 00:07:16 +0200 (lun., 09 août 2010) | 2 lines Fix #8530: Prevent stringlib fastsearch from reading beyond the front of an array. ........ r83878 | florent.xicluna | 2010-08-09 10:29:08 +0200 (lun., 09 août 2010) | 1 line Merge the 2to3 script from /sandbox/trunk/2to3/2to3, revision 72867 (latest). ........
* Make the ctl-C shutdown of serve.py prettier.R. David Murray2010-05-281-2/+5
|
* Have the serve.py script announce the directory it isR. David Murray2010-05-061-0/+1
| | | | | serving and which port it is serving it on (I can never remember the default port number it uses...)
* normalize shebang lines to #!/usr/bin/env pythonBenjamin Peterson2010-03-111-1/+1
|
* remove svn:executable from scripts without a shebang lineBenjamin Peterson2010-03-081-0/+0
|
* Add some notes about Tools/scripts/serve.py.Dirkjan Ochtman2010-02-242-0/+7
|
* Issue #8004: add a serve target to the Doc Makefile.Dirkjan Ochtman2010-02-241-0/+25
|
* Add find_recursionlimit.py to README.Georg Brandl2009-10-111-5/+6
|