Commit Graph

357 Commits

Author SHA1 Message Date
Serhiy Storchaka
aa767a555b Issue #23330: h2py now supports arbitrary filenames in #include. 2015-05-03 15:35:02 +03:00
Benjamin Peterson
35452b3f95 delete old ftpmirror script, which now has security bugs (closes #23130) 2014-12-30 10:08:16 -06:00
Donald Stufft
8aaff54db3 Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
* 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.
2014-11-11 10:24:11 -05:00
Georg Brandl
6a1184c024 Closes #22663: patchcheck: only modify text files under Doc/ 2014-10-19 11:54:08 +02:00
Serhiy Storchaka
3eb554fc82 Issue #22221: Backported fixes from Python 3 (issue #18960).
* 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.
2014-09-05 10:22:05 +03:00
Serhiy Storchaka
e0ed2d75c8 Issue #19936: Added executable bits or shebang lines to Python scripts which
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.
2014-01-16 18:59:17 +02:00
Serhiy Storchaka
e4818f6937 Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
2013-09-17 10:09:08 +03:00
Serhiy Storchaka
e787bce79c Issue #18873: IDLE, 2to3, and the findnocoding.py script now detect Python
source code encoding only in comment lines.
2013-09-17 00:00:46 +03:00
Ezio Melotti
6d0f0f299b #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:31:30 +03:00
Terry Jan Reedy
68ad1d1372 Issue #18439: Make patchcheck work on Windows for ACKS, NEWS. 2013-07-21 20:57:44 -04:00
Ned Deily
69f051c33c Issue #17801: fix shebang line of gprof2html.py 2013-04-20 14:07:05 -07:00
doko@python.org
4e63fbe04d - Issue #17029: Let h2py search the multiarch system include directory. 2013-01-25 13:08:27 +01:00
Serhiy Storchaka
dfae912d80 Issue #15539: Fix backup file creation in pindent.py on Windows 2013-01-11 22:16:15 +02:00
Ezio Melotti
9e9cb2810e Add a note about checking refleaks to patchcheck. 2013-01-11 14:07:47 +02:00
Serhiy Storchaka
8cd7f82024 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
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.
2013-01-11 11:59:59 +02:00
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Éric Araujo
0d983b5339 Avoid SyntaxError in script using print function 2012-07-02 17:45:10 -04:00
Nadeem Vawda
f00011aff4 Issue #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
2012-02-22 11:40:09 +02:00
Éric Araujo
a5afa4955d patchcheck: don’t talk about the test suite when no code file were changed.
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.
2011-08-19 08:41:00 +02:00
Éric Araujo
35a7f5516d Let “make patchcheck” work for out-of-dir builds (#9860) 2011-07-30 21:34:04 +02:00
Éric Araujo
fea8ac4772 Branch merge 2011-07-29 14:23:13 +02:00
Éric Araujo
0fb681ea50 Fix missing or shebangs and executable bits for scripts (#10318) 2011-07-29 12:06:13 +02:00
Jason R. Coombs
fee7745ebb Fixes #10639: reindent.py should not convert newlines
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.
2011-07-27 14:05:37 -04:00
Guido van Rossum
1ce5d181d7 Minimal changes to make byext.py script work with Python 3 syntax. 2011-06-28 10:33:38 -07:00
Ezio Melotti
c2077b0d9b #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00