summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
Commit message (Collapse)AuthorAgeFilesLines
...
* correct wording (#4983)Benjamin Peterson2017-12-231-1/+1
|
* bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (#4977)Benjamin Peterson2017-12-224-2/+42
| | | | | | This is more complicated than it should be because we need to preserve the useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar has. We only look for the pickled grammar file with pkgutil.get_data and only if the source file does not exist.
* bpo-32046: Update 2to3 when converts operator.isCallable(obj). (#4417)Dong-hee Na2017-11-282-6/+5
|
* bpo-30143: 2to3 now generates a code that uses abstract collection classes ↵Serhiy Storchaka2017-11-162-10/+10
| | | | | | (#1262) from collections.abc rather than collections.
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-064-94/+24
| | | Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
* closes bpo-27494: Fix 2to3 handling of trailing comma after a generator ↵Jakub Stasiak2017-10-056-10/+36
| | | | expression (#3771)
* bpo-29783: Replace codecs.open() with io.open() (#599)Victor Stinner2017-06-162-30/+11
|
* bpo-23894: make lib2to3 recognize f-strings (#1733)Łukasz Langa2017-05-222-1/+7
| | | | | | | Note: this doesn't unpack f-strings into the underlying JoinedStr AST. Ideally we'd fully implement JoinedStr here but given its additional complexity, I think this is worth bandaiding as is. This unblocks tools like https://github.com/google/yapf to format 3.6 syntax using f-strings.
* Make rb'' strings work in lib2to3 (#1724)Łukasz Langa2017-05-222-7/+37
| | | This partially solves bpo-23894.
* bpo-30144: Import collections ABC from collections.abc rather than ↵Serhiy Storchaka2017-04-241-2/+2
| | | | collections. (#1263)
* bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119)Nevada Sanchez2017-04-132-8/+30
| | | | | * Allow underscores in numeric literals in lib2to3. * Stricter literal parsing for Python 3.6 in lib2to3.pgen2.tokenize. * Add test case for underscores in literals in Python 3.
* bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a ↵Stuart Berg2017-04-064-26/+109
| | | | 'trailer', e.g. zip()[x] (#24)
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-053-4/+4
| | | This hides unwanted implementation details from tracebacks.
* bpo-29957: change LBYL key lookup to dict.setdefault (#938)Michael Selik2017-04-021-5/+0
| | | | | | | | | | | | | * change LBYL key lookup to dict.setdefault The ``results`` was constructed as a defaultdict and we could simply delete the check ``if key not in results``. However, I think it's safer to use dict.setdefault as I'm not sure whether the caller expects a regular dict or defaultdict. * add name to the acknowledgements file * use defaultdict to make the key-lookup cleaner
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+1
| | | Make also minor PEP8 coding style fixes on modified imports.
* bpo-29776: Use decorator syntax for properties. (#585)Serhiy Storchaka2017-03-191-8/+8
|
* Remove unused imports.Serhiy Storchaka2016-12-162-2/+0
|
* merge 3.5Benjamin Peterson2016-12-061-1/+0
|\
| * rm unused importBenjamin Peterson2016-12-061-1/+0
| |
* | Issue #28394: Merge typo fixes from 3.5 into 3.6Martin Panter2016-10-101-1/+1
|\ \ | |/
| * Issue #28394: Spelling and typo fixes in code comments and changelogMartin Panter2016-10-101-1/+1
| | | | | | | | Includes patch by Ville Skyttä.
* | Remove the debug print that i accidentally left in.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-111-1/+0
|\ \ | |/
| * Remove the debug print that i accidentally left in.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-111-1/+0
| |
* | Issue #25969: Update the lib2to3 grammar to handle the unpackingGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-106-6/+88
|\ \ | |/ | | | | generalizations added in 3.5.
| * Issue #25969: Update the lib2to3 grammar to handle the unpackingGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-106-6/+88
| | | | | | | | generalizations added in 3.5.
| * remove fix_callable - callable() was readded many releases ago.Gregory P. Smith2016-09-102-129/+0
| |
* | Remove 2to3's fix_callable... We reintroduced the callable built-inGregory P. Smith2016-09-102-129/+0
| | | | | | | | pretty early on in the 3.x series (3.1 or 3.2?).
* | issue27985 - fix the incorrect duplicate class name in the lib2to3Gregory P. Smith2016-09-091-1/+1
| | | | | | | | test. call it TestVarAnnotations instead.
* | Issue #28008: Implement PEP 530 -- asynchronous comprehensions.Yury Selivanov2016-09-092-1/+19
| |
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-092-2/+33
| | | | | | | | Patch by Ivan Levkivskyi.
* | Remove legacy "from __future__ import with_statement" lines.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-084-8/+0
| |
* | Fix indentation (reindent.py).Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-081-4/+4
|\ \ | |/
| * Fix indentation (reindent.py).Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-081-4/+4
| |
* | lib2to3.pgen3.driver.load_grammar() now creates a stable cache fileGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-085-16/+112
|\ \ | |/ | | | | | | between runs given the same Grammar.txt input regardless of the hash randomization setting.
| * lib2to3.pgen3.driver.load_grammar() now creates a stable cache fileGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-085-18/+111
| | | | | | | | | | between runs given the same Grammar.txt input regardless of the hash randomization setting.
* | Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.Serhiy Storchaka2016-06-121-1/+1
| | | | | | | | Patch by Demur Rumed.
* | Issue #27030: Merge RE fix from 3.5Martin Panter2016-06-121-2/+3
|\ \ | |/
| * Fix buggy RE “\parrot_example.py”, uncovered by Issue #27030Martin Panter2016-06-121-2/+3
| |
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-263-3/+3
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-263-3/+3
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Merge with 3.5Terry Jan Reedy2016-05-061-2/+2
|\ \ | |/
| * Issue 26911: fix import (other problems remain).Terry Jan Reedy2016-05-061-2/+2
| |
* | Removed unused imports.Serhiy Storchaka2016-04-2411-13/+4
| |
* | Remove more unused imports in tests.Serhiy Storchaka2016-04-241-2/+0
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-245-10/+2
| |
* | Issue #23277: Remove more unused sys and os imports.Serhiy Storchaka2016-04-243-5/+0
| |
* | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-172-2/+2
|\ \ | |/ | | | | messages.
| * Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-172-2/+2
| |
* | Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-1/+1
|\ \ | |/
| * Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-1/+1
| |