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 lines in the unittestgui and checkpip scripts.
| * 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.
| * 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: merge with 3.3.Ezio Melotti2013-12-101-1/+1
|\ \ | |/
| * #19943: fix typo noticed by Jakub Wilk.Ezio Melotti2013-12-101-1/+1
| |
* | #19620: merge with 3.3.Ezio Melotti2013-11-251-2/+2
|\ \ | |/
| * #19620: Fix typo in docstring (noticed by Christopher Welborn).Ezio Melotti2013-11-251-2/+2
| |
* | #10712: 2to3 has a new "asserts" fixer that replaces deprecated names of ↵Ezio Melotti2013-11-232-0/+84
| | | | | | | | unittest methods.
* | Issue #19592: Use specific asserts in lib2to3 tests.Serhiy Storchaka2013-11-145-17/+17
|\ \ | |/
| * 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: 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
|\ \ | |/
| * Issue #18037: 2to3 now escapes '\u' and '\U' in native strings.Serhiy Storchaka2013-10-032-7/+62
| |
* | merge 3.3 (#19115)Benjamin Peterson2013-09-281-5/+5
|\ \ | |/
| * 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.
| * 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: merge with 3.3.Ezio Melotti2013-08-173-4/+4
|\ \ | |/
| * #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-173-4/+4
| |
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | | | | | ModuleNotFoundError.
* | Merge 3.3, 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.
| * 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.
* | | modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-6/+4
| | |
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-253-4/+4
| | |
* | | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-183-5/+5
| | |
* | | add fixer for reload() -> imp.reload() (closes #11797)\n\nPatch by Laurie ↵Benjamin Peterson2012-12-084-18/+113
| | | | | | | | | | | | Clark-Michalek and Berker Peksag
* | | merge 3.3 (#16573)Benjamin Peterson2012-11-292-6/+18
|\ \ \ | |/ /
| * | 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.
* | | Issue #16120: Use |yield from| in stdlib.Andrew Svetlov2012-10-062-10/+5
|/ / | | | | | | Patch by Berker Peksag.
* | 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
| |