Project

General

Profile

Development #31163

python3 : utiliser l'encodage hexadécimal de binascii

Added by Paul Marillonnet about 2 months ago. Updated 8 days ago.

Status:
Résolu (à déployer)
Priority:
Normal
Category:
-
Target version:
-
Start date:
06 Mar 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

à la place de str.encode('hex'), pas utilisable en python3.

0001-python3-use-binascii-s-hexadecimal-encoding-hexlify-.patch View (3.29 KB) Paul Marillonnet, 06 Mar 2019 07:56 PM

0001-python3-use-binascii-s-hexadecimal-encoding-hexlify-.patch View (4.02 KB) Paul Marillonnet, 04 Apr 2019 06:14 PM


Related issues

Related to Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11 En cours 23 Nov 2018

Associated revisions

Revision f7d2fb10 (diff)
Added by Paul Marillonnet 8 days ago

python3: use binascii's hexadecimal encoding "hexlify" (#31163)

History

#1 Updated by Paul Marillonnet about 2 months ago

#2 Updated by Paul Marillonnet about 2 months ago

#3 Updated by Benjamin Dauvergne about 2 months ago

  • Assignee set to Paul Marillonnet
  • Status changed from Solution proposée to En cours

hexlify renvoie et mange des bytes en python3, y a des trucs à revoir (voir certainement comment c'est fait dans django).

#5 Updated by Paul Marillonnet 20 days ago

Et donc à la sauce force_text(hexlify(...)) comme dans le code des hashers de Django ?
(Le build actuel en succès correspond au patch joint).

#6 Updated by Benjamin Dauvergne 19 days ago

  • Status changed from Solution proposée to Solution validée

Ok.

#7 Updated by Paul Marillonnet 8 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit f7d2fb10df9cea995703cf66dea8b0ba45a9bb62
Author: Paul Marillonnet <pmarillonnet@entrouvert.com>
Date:   Thu Jan 31 12:57:58 2019 +0100

    python3: use binascii's hexadecimal encoding "hexlify" (#31163)

Also available in: Atom PDF