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.
Showing
Please
register
or
sign in
to comment