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
Demo/parser/test_unparse.py
0 → 100644
Please register or sign in to comment