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:
parent
7e28c804d8
commit
b117928db8
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -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
|
||||
|
@ -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], {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user