Bug #39914
portfolio, 'map' object is not subscriptable
Début:
14 février 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'TypeError'>', value = ''map' object is not subscriptable' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/portfolio.py", line 134, in pick 132 scheme, netloc, path, qs, frag = urlparse.urlsplit(url) 133 path = map(None, path.split('/')) > 134 name = urllib.unquote(path[-1]) 135 from .qommon.form import PicklableUpload 136 download = PicklableUpload(name, content_type='application/pdf')
Fichiers
Révisions associées
remove obsolete map(None...) usage (#39914)
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-remove-obsolete-map-None.-usage-39914.patch 0001-remove-obsolete-map-None.-usage-39914.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Pas la moindre idée du pourquoi de cette construction, l'origine est #6651. (et help(map) "If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).").
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Résolu (à déployer)
commit 4453cdcf754528009d47433f598bbd008ad4ad89 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Feb 14 22:56:21 2020 +0100 remove obsolete map(None...) usage (#39914)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
remove obsolete map(None...) usage (#39914)