summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | 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
| | |
| * | Merged revisions 87002 via svnmerge fromBenjamin Peterson2010-12-045-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r87002 | martin.v.loewis | 2010-12-03 17:11:07 -0600 (Fri, 03 Dec 2010) | 21 lines Merged revisions 85551,86156-86157,86464 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r85551 | benjamin.peterson | 2010-10-15 23:57:29 +0200 (Fr, 15 Okt 2010) | 1 line escape() is now in the html module ........ r86156 | georg.brandl | 2010-11-04 09:34:57 +0100 (Do, 04 Nov 2010) | 1 line Consistency fixes in option parser help texts. ........ r86157 | georg.brandl | 2010-11-04 09:35:30 +0100 (Do, 04 Nov 2010) | 1 line #10286: fix urllib class names. ........ r86464 | benjamin.peterson | 2010-11-14 16:28:52 +0100 (So, 14 Nov 2010) | 1 line match only .py files #10416 ........ ................
| * | Merged revisions 85510 via svnmerge fromBenjamin Peterson2010-10-1459-50/+726
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r85510 | benjamin.peterson | 2010-10-14 18:00:04 -0500 (Thu, 14 Oct 2010) | 61 lines Merged revisions 83852-83853,83857,84042,84216,84274-84276,84375,85388,85478,85506-85508 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r83852 | benjamin.peterson | 2010-08-08 15:45:44 -0500 (Sun, 08 Aug 2010) | 1 line wrap with parens ........ r83853 | benjamin.peterson | 2010-08-08 15:46:31 -0500 (Sun, 08 Aug 2010) | 1 line use parens ........ r83857 | benjamin.peterson | 2010-08-08 15:59:49 -0500 (Sun, 08 Aug 2010) | 1 line things which use touch_import should be pre order ........ r84042 | george.boutsioukis | 2010-08-14 16:10:19 -0500 (Sat, 14 Aug 2010) | 2 lines This revision incorporates into the 2to3 tool the new, faster, tree matching algorithm developed during a GSOC project. The algorithm resides in the two added modules, btm_matcher and btm_utils. New code has been added to drive the new matching process in refactor.py and a few minor changes were made in other modules. A BM_compatible flag(False by default) has been added in fixer_base and it is set to True in most of the current fixers. ........ r84216 | benjamin.peterson | 2010-08-19 16:44:05 -0500 (Thu, 19 Aug 2010) | 1 line allow star_expr in testlist_gexp ........ r84274 | benjamin.peterson | 2010-08-22 18:40:46 -0500 (Sun, 22 Aug 2010) | 1 line wrap long line ........ r84275 | benjamin.peterson | 2010-08-22 18:42:22 -0500 (Sun, 22 Aug 2010) | 1 line cleanup ........ r84276 | benjamin.peterson | 2010-08-22 18:51:01 -0500 (Sun, 22 Aug 2010) | 1 line when there's a None value and a traceback, don't call type with it #9661 ........ r84375 | george.boutsioukis | 2010-08-31 08:38:53 -0500 (Tue, 31 Aug 2010) | 3 lines Idiomatic code changes & stylistic issues fixed in the BottomMatcher module. Thanks to Benjamin Peterson for taking the time to review the code. ........ r85388 | benjamin.peterson | 2010-10-12 17:27:44 -0500 (Tue, 12 Oct 2010) | 1 line fix urllib fixer with multiple as imports on a line #10069 ........ r85478 | benjamin.peterson | 2010-10-14 08:09:56 -0500 (Thu, 14 Oct 2010) | 1 line stop abusing docstrings ........ r85506 | benjamin.peterson | 2010-10-14 17:45:19 -0500 (Thu, 14 Oct 2010) | 1 line kill sibling import ........ r85507 | benjamin.peterson | 2010-10-14 17:54:15 -0500 (Thu, 14 Oct 2010) | 1 line remove trailing whitespace ........ r85508 | benjamin.peterson | 2010-10-14 17:55:28 -0500 (Thu, 14 Oct 2010) | 1 line typo ........ ................