1 parent 195fe3b commit c25224aCopy full SHA for c25224a
1 file changed
pytest_httpserver/httpserver.py
@@ -9,7 +9,6 @@
9
from copy import copy
10
from typing import Callable, Mapping, Optional, Union
11
from ssl import SSLContext
12
-import urllib.parse
13
import abc
14
15
from werkzeug.http import parse_authorization_header
@@ -178,16 +177,6 @@ def get_comparing_values(self, request_query_string):
178
177
return (True, False)
179
180
181
-def _get_dict_type(d: Mapping, default=bytes):
182
- try:
183
- first_key = next(iter(d.keys()))
184
- key_type = type(first_key)
185
- except StopIteration:
186
- key_type = default
187
-
188
- return key_type
189
190
191
def _create_query_matcher(query_string: Union[None, QueryMatcher, str, bytes, Mapping]) -> QueryMatcher:
192
if isinstance(query_string, QueryMatcher):
193
return query_string
0 commit comments