Skip to content

Commit

Permalink
[#1078] in my own defense
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Dec 15, 2014
1 parent 97620dd commit 5bb1349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/lib/lazyjson.py
Expand Up @@ -42,6 +42,10 @@ class JSONString(int):
Fake-out simplejson by subclassing int so that simplejson calls
our __str__ method to produce JSON.
This trick is unpleasant, but significantly less fragile than
subclassing JSONEncoder and modifying its internal workings, or
monkeypatching the simplejson library.
'''
def __init__(self, s):
self.s = s
Expand Down

0 comments on commit 5bb1349

Please sign in to comment.