Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Feb 15, 2025
1 parent 0392d06 commit b02cb65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycsw/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

import logging
import os
from urllib.parse import parse_qsl, splitquery, urlparse
from urllib.parse import parse_qsl, urlparse
from io import StringIO
import sys
from time import time
Expand Down Expand Up @@ -239,7 +239,7 @@ def dispatch_wsgi(self):
LOGGER.debug('Looks like an OpenSearch URL template')
query_part = self.request.split('?', 1)[-1]
else:
query_part = splitquery(self.request)[-1]
query_part = urlparse(self.request).query
self.kvp = dict(parse_qsl(query_part, keep_blank_values=True))
except AttributeError as err:
LOGGER.exception('Could not parse query string')
Expand Down

0 comments on commit b02cb65

Please sign in to comment.