Merge lp:~pconnell/entrails/2and3 into lp:entrails
Proposed by
Phil Connell
Status: | Merged |
---|---|
Approved by: | Martin Morrison |
Approved revision: | 21 |
Merged at revision: | 20 |
Proposed branch: | lp:~pconnell/entrails/2and3 |
Merge into: | lp:entrails |
Diff against target: |
191 lines (+41/-35) 3 files modified
src/entrails/_output.py (+19/-17) src/entrails/_trace.py (+5/-3) src/trace.py (+17/-15) |
To merge this branch: | bzr merge lp:~pconnell/entrails/2and3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Morrison | Approve | ||
Review via email: mp+225819@code.launchpad.net |
Commit message
Updates to run on both Python 2 and 3.
Description of the change
Updates to run on both Python 2 and 3.
Approach is very simple: ran 2to3 over the code and added a few extra __future__ imports to make Python 2 work, i.e. most of the changes are auto-generated.
Background/
- Anything using twisted is stuck on Python 2, can't drop support yet.
- Future tools (e.g. sextant) and most development without dependencies on twisted is all Python 3.
- So, need to support both for forseeable future. Eventual goal is to drop Python 2 support.
To post a comment you must log in.
Didn't really review code; approach sounds reasonable. Sextant sounds exciting. ;-)