]> granicus.if.org Git - python/commit
Update Demo/parser/unparse.py to current Python 3.x syntax. Additions:
authorMark Dickinson <dickinsm@gmail.com>
Mon, 28 Jun 2010 21:14:17 +0000 (21:14 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 28 Jun 2010 21:14:17 +0000 (21:14 +0000)
commitfa2e4e9d046a9554bc201a0d5a1f7ef739c82bd3
treee71a0dea4f7c941eb1bdda4ccd4ca0fea4b8ad50
parentf5451e546a720392c1ceef9c33db336e6ebd2d7e
Update Demo/parser/unparse.py to current Python 3.x syntax.  Additions:
 - relative imports
 - keyword-only arguments
 - function annotations
 - class decorators
 - raise ... from ...
 - except ... as ...
 - nonlocal
 - bytes literals
 - set literals
 - set comprehensions
 - dict comprehensions
Removals:
 - print statement.

Some of this should be backported to 2.x.
Demo/parser/test_unparse.py
Demo/parser/unparse.py