• Mark Dickinson's avatar
    Fix some shallow bugs in Demo/parser/unparse.py, and add tests: · 623b9795
    Mark Dickinson authored
      - 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.
    623b9795
test_unparse.py 1.37 KB