Development #31151
python3 : déprécier le type natif 'unicode' de python2
Début:
06 mars 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Au profit de six.text_type (cf https://pythonhosted.org/six/#six.text_type) qui nous sauve bien l'affaire.
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0001-python3-remove-deprecated-unicode-builtin-31151.patch 0001-python3-remove-deprecated-unicode-builtin-31151.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Lié à Development #28276: Fonctionner avec Python3 pour Django1.11 ajouté
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
- Statut changé de Solution proposée à En cours
- Assigné à mis à Paul Marillonnet
Il faut utiliser from django.utils import six
.
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0001-python3-remove-deprecated-unicode-builtin-31151.patch 0001-python3-remove-deprecated-unicode-builtin-31151.patch ajouté
- Statut changé de En cours à Solution proposée
Hop.
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
- Fichier 0002-1.patch 0002-1.patch ajouté
- Fichier 0003-2.patch 0003-2.patch ajouté
Voilà conversion text_type -> six.text_type
.
Mis à jour par Paul Marillonnet il y a environ 5 ans
Merci !
J'ai git-apply < tes patchs, je mets à jour mon patch ici.
Mis à jour par Paul Marillonnet il y a environ 5 ans
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
Dans src/authentic2/backends/ldap_backend.py tu ajoutes un import six sans enlever celui qui y est déjà, faudra voir si il y a d'autres cas.
Mis à jour par Paul Marillonnet il y a environ 5 ans
Oui, en effet, il y a trois fichiers dans ce cas :
$ git show | grep '^--- a' | sed 's_--- a/\(.*\)_\1_' | xargs grep 'import' | grep 'six' | grep -v 'django' src/authentic2/backends/ldap_backend.py:import six src/authentic2/manager/widgets.py:from six.moves import reduce src/authentic2/saml/models.py:import six
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0001-python3-remove-deprecated-unicode-builtin-31151.patch 0001-python3-remove-deprecated-unicode-builtin-31151.patch ajouté
Corrigé ici.
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
- Statut changé de Solution proposée à Solution validée
Ack.
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit cb10c41b0fd6b847371c898db96df62c5f76730d Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Thu Jan 24 16:18:11 2019 +0100 python3: remove deprecated unicode builtin (#31151)
Mis à jour par Frédéric Péters il y a environ 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
python3: remove deprecated unicode builtin (#31151)