summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-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. Fixed shebang line to use python3 executable in the unittestgui script.
* Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * 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.
* #19943: fix typo noticed by Jakub Wilk.Ezio Melotti2013-12-101-1/+1
|
* #19620: Fix typo in docstring (noticed by Christopher Welborn).Ezio Melotti2013-11-251-2/+2
|
* Issue #19592: Use specific asserts in lib2to3 tests.Serhiy Storchaka2013-11-145-17/+17
|
* Issue #18037: Do not escape '\u' and '\U' in raw strings.Serhiy Storchaka2013-10-082-3/+2
|
* Issue #18037: 2to3 now escapes '\u' and '\U' in native strings.Serhiy Storchaka2013-10-032-7/+62
|
* fix duplicate test names (closes #19115)Benjamin Peterson2013-09-281-5/+5
| | | | Patch by Xavier de Gaye.
* Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py scriptSerhiy Storchaka2013-09-163-5/+10
| | | | now detect Python source code encoding only in comment lines.
* #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-173-4/+4
|
* Merge 3.2, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-2/+2
|\ | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-2/+2
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | merge 3.2 (#16573)Benjamin Peterson2012-11-292-6/+18
|\ \ | |/
| * enumerate only requires an iterable (closes #16573)Benjamin Peterson2012-11-292-6/+18
| | | | | | | | Patch by Jonathan Kotta.
* | merge 3.2Benjamin Peterson2012-09-252-3/+3
|\ \ | |/
| * switch assertion to an explicit ValueErrorBenjamin Peterson2012-09-252-3/+3
| |
| * Issue #15822: Fix installation of lib2to3 grammar pickles to ensureNed Deily2012-09-091-0/+17
| | | | | | | | | | they are created in the install locations and with the proper timestamp. (Solution suggested by MvL)
* | Issue #15822: Fix installation of lib2to3 grammar pickles to ensureNed Deily2012-09-091-0/+17
| | | | | | | | | | they are created in the install locations and with the proper timestamp. (Solution suggested by MvL)
* | remove get_prefix and set_prefix (#13248)Benjamin Peterson2012-03-142-37/+0
| |
* | Issue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.Antoine Pitrou2012-02-271-3/+10
|\ \ | |/ | | | | Patch by Mikhail Novikov.
| * Issue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.Antoine Pitrou2012-02-271-3/+10
| | | | | | | | Patch by Mikhail Novikov.
| * Fix use of deprecated assertRegexpMatches method.Georg Brandl2012-02-201-1/+1
| |
| * import re for the previous commit.Gregory P. Smith2012-02-141-0/+1
| |
* | re.escape os.sep so that \ is interpreted properly in the regex.Gregory P. Smith2012-02-141-2/+4
|\ \ | |/
| * re.escape os.sep so that \ is interpreted properly in the regex.Gregory P. Smith2012-02-141-2/+3
| |
* | Issue #13930: fix a / to use os.sep so that the test works on Windows.Gregory P. Smith2012-02-141-2/+4
|\ \ | |/
| * Issue #13930: fix a / to use os.sep so that the test works on Windows.Gregory P. Smith2012-02-141-2/+4
| |
* | lib2to3 tests: Don't use deprecated API, switch to assertRegex()Victor Stinner2012-02-132-2/+2
| |
* | fix whitespace normalization before pushing.Gregory P. Smith2012-02-121-5/+5
|\ \ | |/
| * fix whitespace normalization before pushing.Gregory P. Smith2012-02-121-5/+5
| |
* | Issue #13930: Adds ability for 2to3 to write its output to a differentGregory P. Smith2012-02-124-14/+233
|\ \ | |/ | | | | | | directory tree instead of overwriting the input files. Adds three command line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.
| * Issue #13930: Adds ability for 2to3 to write its output to a differentGregory P. Smith2012-02-124-14/+233
| | | | | | | | | | | | | | | | | | directory tree instead of overwriting the input files. Adds three command line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix. Feature backports into stable release branches for 2to3 are allowed by a special exemption: http://mail.python.org/pipermail/python-dev/2011-December/115089.html
* | merge 3.2 (#13766)Benjamin Peterson2012-01-161-1/+1
|\ \ | |/
| * explain why we need this grammar file (closes #13766)Benjamin Peterson2012-01-161-1/+1
| |
* | - Re-enable lib2to3's test_parser.py tests, though with an expected failureBarry Warsaw2011-10-071-3/+1
|\ \ | |/ | | | | (see issue 13125).
| * - Issue #11250: Back port fix from 3.3 branch, so that 2to3 can handle filesBarry Warsaw2011-10-073-22/+30
| | | | | | | | | | | | | | | | with line feeds. This was ported from the sandbox to the 3.3 branch, but didn't make it into 3.2. - Re-enable lib2to3's test_parser.py tests, though with an expected failure (see issue 13125).
* | - Re-enable lib2to3's test_parser.py tests, though with an expected failureBarry Warsaw2011-10-071-9/+15
| | | | | | | | (see issue 13125).
* | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-281-2/+2
| |
* | Merge fixes for #9860, #11104/#8688 and #12331 from 3.2Éric Araujo2011-07-311-7/+11
|\ \ | |/
| * Stop trying to write into the stdlib during lib2to3 tests (#12331).Éric Araujo2011-07-311-7/+11
| | | | | | | | | | This prevents tests from failing when run from a Python installed in a read-only directory.
* | Closes #12536: Unused logger removed from lib2to3.Vinay Sajip2011-07-131-3/+1
| |
* | #11565: Merge with 3.2.Ezio Melotti2011-03-165-7/+7
|\ \ | |/
| * #11565: Merge with 3.1.Ezio Melotti2011-03-165-7/+7
| |\
| | * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-165-7/+7
| | |
* | | merge 3.2Benjamin Peterson2011-03-083-16/+32
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-03-083-16/+32
| |\ \ | | |/
| | * transform izip_longest #11424Benjamin Peterson2011-03-083-16/+32
| | |
| * | merge 3.1Benjamin Peterson2011-03-071-4/+7
| |\ \ | | |/
* | | merge 3.1Benjamin Peterson2011-03-061-4/+7
|\ \ \ | | |/ | |/|
| * | only do this sys.stderr replacing on CPythonBenjamin Peterson2011-03-061-4/+7
| | |