forked from ScoDoc/DocScoDoc
Fix pour Python 3.9: cgi.parse_qs -> urllib.parse.parse_qs
This commit is contained in:
parent
ba8a8e8d19
commit
cfd54fbc88
@ -30,12 +30,14 @@
|
||||
"""
|
||||
|
||||
# Re-ecriture en 2014 (re-organisation de l'interface, modernisation du code)
|
||||
import datetime
|
||||
import cgi
|
||||
import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error
|
||||
import time
|
||||
|
||||
import collections
|
||||
import datetime
|
||||
import operator
|
||||
import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error
|
||||
from urllib.parse import parse_qs
|
||||
import time
|
||||
|
||||
|
||||
from flask import url_for, g
|
||||
|
||||
@ -931,7 +933,7 @@ def form_choix_saisie_semaine(context, groups_infos, REQUEST=None):
|
||||
return ""
|
||||
# construit l'URL "destination"
|
||||
# (a laquelle on revient apres saisie absences)
|
||||
query_args = cgi.parse_qs(REQUEST.QUERY_STRING)
|
||||
query_args = parse_qs(REQUEST.QUERY_STRING)
|
||||
moduleimpl_id = query_args.get("moduleimpl_id", [""])[0]
|
||||
if "head_message" in query_args:
|
||||
del query_args["head_message"]
|
||||
|
Loading…
Reference in New Issue
Block a user