Closed Bug 656632 Opened 13 years ago Closed 11 years ago

jsbridge JSONEncoder copy+pastes from simplejson code

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: k0scist, Assigned: berkerpeksag)

References

Details

Attachments

(1 file, 1 obsolete file)

https://github.com/mozautomation/mozmill/blob/master/jsbridge/jsbridge/network.py#L109

It shouldn't.  Instead, it should just call the code it wants to call:

def _iterencode(self, o, markers=None):
        if isinstance(o, jsobjects.JSObject):
            yield o._name_
        else:
            yield simplejson.JSONEncoder._iterencode(self, o, markers)
Assignee: nobody → berker.peksag
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #710575 - Flags: review?(hskupin)
Attachment #710575 - Flags: review?(hskupin)
Attached patch Patch v2Splinter Review
Attachment #710575 - Attachment is obsolete: true
Attachment #720264 - Flags: review?(hskupin)
Jeff filed this bug and he better understands the underlying code to be the mentor here.
Status: NEW → ASSIGNED
Whiteboard: [mentor=jhammel][lang=py]
Comment on attachment 720264 [details] [diff] [review]
Patch v2

Jeff, can you please review and land if it looks fine to you? Thanks.
Attachment #720264 - Flags: review?(hskupin) → review?(jhammel)
Attachment #720264 - Flags: review?(jhammel) → review+
pushed: https://github.com/mozilla/mozmill/commit/29c68aa5e36f6d2f14eda42a1a315c1f45564497

Thanks for the patch!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
The landing of this patch caused us troubles with Mozmill 2.0 on OS X 10.6 with Python 2.6 installed. It's a hard-blocker for us to get that release out. Reverting the changes here will stop that behavior, so I will go ahead and backout the landing of this patch.

Berker, would you be interested in working on a cleaner solution, which will work even under the platform specs as given above?

Backed out:
https://github.com/mozilla/mozmill/commit/d86ae556d654bf6277462f52ce2fb6707f976939 (master)
https://github.com/mozilla/mozmill/commit/cd4ef346e2691697a71c0e6757d726d81e9fbc7a (hotfix-2.0)
Status: RESOLVED → REOPENED
Flags: needinfo?(berker.peksag)
Resolution: FIXED → ---
Whiteboard: [mentor=jhammel][lang=py] → [mentor=jhammel][lang=py][mozmill-2.1?]
Whiteboard: [mentor=jhammel][lang=py][mozmill-2.1?] → [mozmill-2.1?]
With bug 940035 we have removed the usage of simplejson from Mozmill. So the patch as attached on this bug is no longer necessary.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → INVALID
Whiteboard: [mozmill-2.1?]
Flags: needinfo?(berker.peksag)
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: