8000 fix: Remove dead code · pythonthings/sentry-python@ca2d527 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca2d527

Browse files
committed
fix: Remove dead code
1 parent 41d16d3 commit ca2d527

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,6 @@
2121
from django.utils.datastructures import MultiValueDict # type: ignore
2222
from typing import List
2323

24-
try:
25-
import psycopg2.sql # type: ignore
26-
27-
def sql_to_string(sql):
28-
# type: (Any) -> str
29-
if isinstance(sql, psycopg2.sql.SQL):
30-
return sql.string
31-
return sql
32-
33-
34-
except ImportError:
35-
36-
def sql_to_string(sql):
37-
# type: (Any) -> str
38-
return sql
39-
4024

4125
try:
4226
from django.urls import resolve # type: ignore

0 commit comments

Comments
 (0)
0