Replace usage of deprecated API 'cgi.parse_qsl'

Python 3.8.0 removed this deprecated API. We already use the replacement
`urllib.parse.parse_qsl` in `UIRequest.py`
This commit is contained in:
Natalia Fenclová 2019-11-14 17:22:39 +01:00
parent 8d95eb937f
commit 456e330854
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import logging
import time
import cgi
import urllib
import socket
import gevent
@ -118,7 +118,7 @@ class UiServer:
def handleRequest(self, env, start_response):
path = bytes(env["PATH_INFO"], "raw-unicode-escape").decode("utf8")
if env.get("QUERY_STRING"):
get = dict(cgi.parse_qsl(env['QUERY_STRING']))
get = dict(urllib.parse.parse_qsl(env['QUERY_STRING']))
else:
get = {}
ui_request = UiRequest(self, get, env, start_response)