Skip to content

Commit c25224a

Browse files
committed
httpserver: minor fixes for query matcher
Remove unused functions and imports. Relates to csernazs#15.
1 parent 195fe3b commit c25224a

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from copy import copy
1010
from typing import Callable, Mapping, Optional, Union
1111
from ssl import SSLContext
12-
import urllib.parse
1312
import abc
1413

1514
from werkzeug.http import parse_authorization_header
@@ -178,16 +177,6 @@ def get_comparing_values(self, request_query_string):
178177
return (True, False)
179178

180179

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-
191180
def _create_query_matcher(query_string: Union[None, QueryMatcher, str, bytes, Mapping]) -> QueryMatcher:
192181
if isinstance(query_string, QueryMatcher):
193182
return query_string

0 commit comments

Comments
 (0)