Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #2 from martriay/master

Added functools.wraps
  • Loading branch information...
commit 0b2e8921a1d365b5e464c791cf41247dc88afed6 2 parents 5e20dd2 + 8d87d8f
Frédéric Junod authored March 19, 2013

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  flaskext/jsonify.py
2  flaskext/jsonify.py
@@ -5,8 +5,10 @@
5 5
     from simplejson import dumps
6 6
 
7 7
 from flask import Response
  8
+from functools import wraps
8 9
 
9 10
 def jsonify(f):
  11
+    @wraps(f)
10 12
     def inner(*args, **kwargs):
11 13
         return Response(dumps(f(*args, **kwargs)), mimetype='application/json')
12 14
     return inner

0 notes on commit 0b2e892

Please sign in to comment.
Something went wrong with that request. Please try again.