Skip to content

Commit 2205120

Browse files
Apply suggestions from code review
Co-authored-by: Daniel Szoke <[email protected]>
1 parent 7ee08af commit 2205120

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def setup_once():
168168

169169
old_app = WSGIHandler.__call__
170170

171-
@functools.wraps(old_app)
172171
@ensure_integration_enabled(DjangoIntegration, old_app)
173172
def sentry_patched_wsgi_handler(self, environ, start_response):
174173
# type: (Any, Dict[str, str], Callable[..., Any]) -> _ScopedResponse
@@ -640,7 +639,6 @@ def install_sql_hook():
640639
# This won't work on Django versions < 1.6
641640
return
642641

643-
@functools.wraps(real_execute)
644642
@ensure_integration_enabled(DjangoIntegration, real_execute)
645643
def execute(self, sql, params=None):
646644
# type: (CursorWrapper, Any, Optional[Any]) -> Any
@@ -660,7 +658,6 @@ def execute(self, sql, params=None):
660658

661659
return result
662660

663-
@functools.wraps(real_executemany)
664661
@ensure_integration_enabled(DjangoIntegration, real_executemany)
665662
def executemany(self, sql, param_list):
666663
# type: (CursorWrapper, Any, List[Any]) -> Any
@@ -681,7 +678,6 @@ def executemany(self, sql, param_list):
681678

682679
return result
683680

684-
@functools.wraps(real_connect)
685681
@ensure_integration_enabled(DjangoIntegration, real_connect)
686682
def connect(self):
687683
# type: (BaseDatabaseWrapper) -> None

sentry_sdk/integrations/django/asgi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ async def sentry_patched_asgi_handler(self, scope, receive, send):
110110
if modern_django_asgi_support:
111111
old_create_request = cls.create_request
112112

113-
@functools.wraps(old_create_request)
114113
@ensure_integration_enabled(DjangoIntegration, old_create_request)
115114
def sentry_patched_create_request(self, *args, **kwargs):
116115
# type: (Any, *Any, **Any) -> Any

0 commit comments

Comments
 (0)