Changes between Version 24 and Version 27 of Ticket #9536
- Timestamp:
- Feb 23, 2011, 10:39:03 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9536 – Description
v24 v27 2 2 3 3 * ~~Use context managers and the `with` statement for: database transactions, handling locks, handling files.~~ 4 * Use `... if ... else ...` expressions instead of the more error-prone `... and ... or ...`.4 * ~~Use `... if ... else ...` expressions instead of the more error-prone `... and ... or ...`.~~ 5 5 * Use `try: except: finally:` instead of nested `try: finally:` and `try: except:`. 6 6 * Use `except Exception:` instead of `except:`.