]> granicus.if.org Git - python/commit
bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119)
authorNevada Sanchez <me@nevadasanchez.com>
Thu, 13 Apr 2017 17:32:54 +0000 (13:32 -0400)
committerMariatta <Mariatta@users.noreply.github.com>
Thu, 13 Apr 2017 17:32:54 +0000 (10:32 -0700)
commita6e395dffadf8c5124903c01ad69fefa36b1a935
tree82fc605d0a1b44e9442a735f37771c4b4cfb3c86
parent873ef20d0007b4b120933473e6252d2309a70102
bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119)

* 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.
Lib/lib2to3/pgen2/tokenize.py
Lib/lib2to3/tests/data/py3_test_grammar.py