Skip to content

Commit

Permalink
copy handler's name and docstring to wrapper (Fixes #573)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jun 8, 2019
1 parent 55d02d9 commit 4e0329b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from functools import wraps
import os
import sys

Expand Down Expand Up @@ -272,6 +273,7 @@ def handle_my_custom_event(json):
namespace = namespace or '/'

def decorator(handler):
@wraps(handler)
def _handler(sid, *args):
return self._handle_event(handler, message, namespace, sid,
*args)
Expand Down

0 comments on commit 4e0329b

Please sign in to comment.