Commit Graph

1 Commits

Author SHA1 Message Date
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