Show More
@@ -263,8 +263,7 b' def json(obj, paranoid=True):' | |||||
263 | elif util.safehasattr(obj, '__iter__'): |
|
263 | elif util.safehasattr(obj, '__iter__'): | |
264 | out = [json(i, paranoid) for i in obj] |
|
264 | out = [json(i, paranoid) for i in obj] | |
265 | return '[' + ', '.join(out) + ']' |
|
265 | return '[' + ', '.join(out) + ']' | |
266 | else: |
|
266 | raise error.ProgrammingError('cannot encode %r' % obj) | |
267 | raise TypeError('cannot encode type %s' % obj.__class__.__name__) |
|
|||
268 |
|
267 | |||
269 | @templatefilter('lower', intype=bytes) |
|
268 | @templatefilter('lower', intype=bytes) | |
270 | def lower(text): |
|
269 | def lower(text): |
General Comments 0
You need to be logged in to leave comments.
Login now