1
0
mirror of https://github.com/sashacmc/photo-importer.git synced 2025-02-10 18:31:08 +02:00

Change deprecated parse_qs call

This commit is contained in:
sashacmc 2021-03-08 00:50:54 +01:00
parent 7e28c804d8
commit b117928db8
2 changed files with 9 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
photo-importer (1.0.5) stable; urgency=medium
* Fix read of remove_empty_dirs
* Change deprecated parse_qs call
-- Alexander Bushnev <Alexander@Bushnev.ru> Mon, 08 Mar 2021 00:46:55 +0100
photo-importer (1.0.4) stable; urgency=medium
* Check device readonly and don't allow import with move mode

View File

@ -2,11 +2,11 @@
import os
import re
import cgi
import sys
import glob
import json
import psutil
import urllib
import logging
import argparse
import http.server
@ -245,7 +245,7 @@ class PhotoImporterHandler(http.server.BaseHTTPRequestHandler):
def __path_params(self):
path_params = self.path.split('?')
if len(path_params) > 1:
return path_params[0], cgi.parse_qs(path_params[1])
return path_params[0], urllib.parse.parse_qs(path_params[1])
else:
return path_params[0], {}