File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -132,10 +132,8 @@ from netboxlabs.diode.sdk.ingester import (
132132 DeviceType,
133133 Entity,
134134 Interface,
135- IPAddress,
136135 Manufacturer,
137136 Platform,
138- Prefix,
139137 Role,
140138 Site,
141139)
Original file line number Diff line number Diff line change 55import logging
66import os
77import platform
8- import urllib
98import uuid
109from collections .abc import Iterable
10+ from urllib .parse import urlparse
1111
1212import certifi
1313import grpc
@@ -43,7 +43,7 @@ def _get_api_key(api_key: str | None = None) -> str:
4343
4444def parse_target (target : str ) -> tuple [str , str , bool ]:
4545 """Parse the target into authority, path and tls_verify."""
46- parsed_target = urllib . parse . urlparse (target )
46+ parsed_target = urlparse (target )
4747
4848 if parsed_target .scheme not in ["grpc" , "grpcs" ]:
4949 raise ValueError ("target should start with grpc:// or grpcs://" )
You can’t perform that action at this time.
0 commit comments