Merge lp:~dobey/ubuntuone-dev-tools/update-4-0 into lp:ubuntuone-dev-tools/stable-4-0
Status: | Merged |
---|---|
Approved by: | dobey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 81 |
Proposed branch: | lp:~dobey/ubuntuone-dev-tools/update-4-0 |
Merge into: | lp:ubuntuone-dev-tools/stable-4-0 |
Diff against target: |
494 lines (+141/-51) 14 files modified
bin/u1lint (+24/-14) run-tests (+5/-0) ubuntuone/devtools/compat.py (+49/-0) ubuntuone/devtools/handlers.py (+9/-7) ubuntuone/devtools/runners/__init__.py (+5/-4) ubuntuone/devtools/services/dbus.py (+7/-1) ubuntuone/devtools/services/squid.py (+4/-2) ubuntuone/devtools/services/tests/test_dbus.py (+7/-1) ubuntuone/devtools/services/tests/test_squid.py (+4/-4) ubuntuone/devtools/testcases/__init__.py (+4/-4) ubuntuone/devtools/testcases/dbus.py (+8/-2) ubuntuone/devtools/testing/tests/test_txwebserver.py (+11/-10) ubuntuone/devtools/testing/txcheck.py (+1/-1) ubuntuone/devtools/testing/txwebserver.py (+3/-1) |
To merge this branch: | bzr merge lp:~dobey/ubuntuone-dev-tools/update-4-0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Casteleijn (community) | Approve | ||
Review via email: mp+121704@code.launchpad.net |
Commit message
[Brian Curtin]
- Store a list for ignore keys rather than a list on Python 2 and an iterator on Python 3
- Add support for a -3 flag to enable the tests to run against Python 3
- Enable unicode_literals for accurate text/bytes distinction to work with Python 3
- Prepare u1lint for Python 3 usage. Update imports for 3x and use the print function.
- Convert unicode type usage to use the bytes/text compatibility layer.
- Update octal literal use for Python 3
- Import StringIO from the io module for Python 3 compatibility
- Use items instead of iteritems for Python 3 compatibility.
- Adjust exception handling to work on Python 3
- Change to Python 3's print function usage via "from __future__ import print_function"
- Move long usage to int.
- Import urllib names by trying Python 3 first and falling back to Python 2
- Add a small compatibility module for Python 2 and 3 Unicode/bytes distinction
- Remove xrange usage, instead moving to range regardless of version.