Commit Graph

4 Commits

Author SHA1 Message Date
Mark Dickinson 2037913507 Update Demo/parser directory; backport unparse fixes from py3k. 2010-06-30 14:19:56 +00:00
Mark Dickinson 0187be0825 unparse.py: fix mispaced parentheses in chained comparisons 2010-06-28 19:54:19 +00:00
Mark Dickinson b83a1ff76b Fix typo in test_unparse.py. 2010-06-28 19:34:15 +00:00
Mark Dickinson 623b979553 Fix some shallow bugs in Demo/parser/unparse.py, and add tests:
- insert commas between entries in del statement
  - left and right shifts were represented as >> and << (respectively); reverse
  - unindent properly after for: else:  or while: else:
  - add parens around the result of an unary operation
  - add parens around negative numbers, to avoid turning (-1)**2 into -1**2.
2010-06-28 19:31:41 +00:00