Merge lp:~cjwatson/launchpadlib/stdlib-json into lp:launchpadlib
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 136 |
Merged at revision: | 135 |
Proposed branch: | lp:~cjwatson/launchpadlib/stdlib-json |
Merge into: | lp:launchpadlib |
Diff against target: |
142 lines (+37/-22) 5 files modified
setup.py (+14/-11) src/launchpadlib/apps.py (+5/-2) src/launchpadlib/credentials.py (+5/-2) src/launchpadlib/docs/command-line.txt (+8/-6) src/launchpadlib/tests/test_http.py (+5/-1) |
To merge this branch: | bzr merge lp:~cjwatson/launchpadlib/stdlib-json |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Dimitri John Ledkov | Approve | ||
Review via email: mp+176031@code.launchpad.net |
Commit message
Use json from the standard library if available.
Description of the change
simplejson was integrated into the Python standard library as json in 2.6. Use it if available rather than requiring an external dependency.
I have not managed to get the tests to work locally (buildout vs. setuptools hatred). Advice or running-
To post a comment you must log in.
On Jul 20, 2013, at 11:09 PM, Colin Watson wrote:
>simplejson was integrated into the Python standard library as json in 2.6.
>Use it if available rather than requiring an external dependency.
+1 for replacing any external dependencies with stdlib modules, making an
eventual <wink> port to Python 3 easier.
>I have not managed to get the tests to work locally (buildout vs. setuptools the-tests- for-me appreciated.
>hatred). Advice or running-
It's been ages since I tried to run these tests, so maybe Gary or someone else
can chime in on that. From a mechanical reading of the changes, they look
good to me.