Merge lp:~jelmer/loggerhead/only-simplejson into lp:loggerhead

Proposed by Jelmer Vernooij
Status: Merged
Approved by: John A Meinel
Approved revision: 430
Merged at revision: 430
Proposed branch: lp:~jelmer/loggerhead/only-simplejson
Merge into: lp:loggerhead
Diff against target: 80 lines (+8/-18)
5 files modified
NEWS (+3/-0)
loggerhead/controllers/changelog_ui.py (+1/-4)
loggerhead/controllers/revision_ui.py (+1/-4)
loggerhead/load_test.py (+1/-4)
loggerhead/templatefunctions.py (+2/-6)
To merge this branch: bzr merge lp:~jelmer/loggerhead/only-simplejson
Reviewer Review Type Date Requested Status
John A Meinel Approve
Review via email: mp+51903@code.launchpad.net

This proposal supersedes a proposal from 2011-03-02.

Description of the change

loggerhead still supported the "json" module as alternative to "simplejson", but the json module lacks a dumps function that loggerhead relies on.

This MP makes loggerhead stop try to support this fallback, and just rely on simplejson.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Garrr.. not my day.

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/2/2011 3:34 PM, Jelmer Vernooij wrote:
> Garrr.. not my day.

The old one was marked merged, but I'll:

 merge: approve

This one.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1uWfkACgkQJdeBCYSNAAMsrQCglwl/4gT+ls2zaRaezknb3rB6
L2oAoKHxi2BJ94YqCqhSCOtfCWNw9yG/
=iE6k
-----END PGP SIGNATURE-----

review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, 2011-03-02 at 14:55 +0000, John A Meinel wrote:
> Review: Approve
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 3/2/2011 3:34 PM, Jelmer Vernooij wrote:
> > Garrr.. not my day.
>
> The old one was marked merged, but I'll:
I accidentally pushed without specifying a target location and it pushed
to lp:loggerhead. I'll do a proper merge now.

Thanks for the review :)

Cheers,

Jelmer

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS'
2--- NEWS 2011-02-10 23:05:31 +0000
3+++ NEWS 2011-03-02 14:32:16 +0000
4@@ -16,6 +16,9 @@
5 - Merge the pqm changes back into trunk, after trunk was reverted to an old
6 revision. (John Arbash Meinel, #716152)
7
8+ - The json module is no longer claimed to be supported as alternative for
9+ simplejson. (Jelmer Vernooij, #586611)
10+
11
12 1.18 [10Nov2010]
13 ----------------
14
15=== modified file 'loggerhead/controllers/changelog_ui.py'
16--- loggerhead/controllers/changelog_ui.py 2010-04-22 08:52:59 +0000
17+++ loggerhead/controllers/changelog_ui.py 2011-03-02 14:32:16 +0000
18@@ -20,10 +20,7 @@
19
20 import urllib
21
22-try:
23- import simplejson
24-except ImportError:
25- import json as simplejson
26+import simplejson
27
28 from paste.httpexceptions import HTTPServerError
29
30
31=== modified file 'loggerhead/controllers/revision_ui.py'
32--- loggerhead/controllers/revision_ui.py 2009-08-04 04:08:03 +0000
33+++ loggerhead/controllers/revision_ui.py 2011-03-02 14:32:16 +0000
34@@ -17,10 +17,7 @@
35 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
36 #
37
38-try:
39- import simplejson
40-except ImportError:
41- import json as simplejson
42+import simplejson
43 import urllib
44
45 from paste.httpexceptions import HTTPServerError
46
47=== modified file 'loggerhead/load_test.py'
48--- loggerhead/load_test.py 2011-02-10 01:00:32 +0000
49+++ loggerhead/load_test.py 2011-03-02 14:32:16 +0000
50@@ -67,10 +67,7 @@
51 import time
52 import Queue
53
54-try:
55- import simplejson
56-except ImportError:
57- import json as simplejson
58+import simplejson
59
60 from bzrlib import (
61 errors,
62
63=== modified file 'loggerhead/templatefunctions.py'
64--- loggerhead/templatefunctions.py 2010-12-01 08:30:02 +0000
65+++ loggerhead/templatefunctions.py 2011-03-02 14:32:16 +0000
66@@ -186,12 +186,8 @@
67
68 # TODO: On old Python versions, elementtree may be used.
69
70- try:
71- import simplejson
72- except ImportError:
73- pass
74- else:
75- versions.append(('simplejson', simplejson.__version__))
76+ import simplejson
77+ versions.append(('simplejson', simplejson.__version__))
78
79 try:
80 Dozer = pkg_resources.get_distribution('Dozer')

Subscribers

People subscribed via source and target branches