Skip to content

Commit 04bcf91

Browse files
authored
ref(transport): Remove compatibility import (getsentry#2698)
1 parent 6cd6e77 commit 04bcf91

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

sentry_sdk/transport.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import time
77
from datetime import datetime, timedelta, timezone
88
from collections import defaultdict
9+
from urllib.request import getproxies
910

1011
from sentry_sdk.consts import EndpointType
1112
from sentry_sdk.utils import Dsn, logger, capture_internal_exceptions
@@ -31,11 +32,6 @@
3132

3233
DataCategory = Optional[str]
3334

34-
try:
35-
from urllib.request import getproxies
36-
except ImportError:
37-
from urllib import getproxies # type: ignore
38-
3935

4036
class Transport:
4137
"""Baseclass for all transports.

0 commit comments

Comments
 (0)