[PATCH 5 of 5] [py3] py2 compliant migration to py3 on sorted

Denis Laxalde denis.laxalde at logilab.fr
Tue Jun 11 09:28:50 CEST 2019


Julien Tayon a écrit :
> # HG changeset patch
> # User julien tayon <julien.tayon at logilab.fr>
> # Date 1558702395 -7200
> #      Fri May 24 14:53:15 2019 +0200
> # Node ID 28e9e128daea260ca076951857bbd5108726a774
> # Parent  06faf72cf308fb7858a83d25b08d2aa7d64506f3
> [py3] py2 compliant migration to py3 on sorted

Applied this patch, partially rewritten to only include sorted(key=...)
change in 234ca3cbbb46. Thanks.

> Py3: py3 sorted does not accept cmp because sorted will now compare the result
> "key" return based on the natural ordering of the returned keys.
> 
> Found not tests so I experimented by using the schema view and then using
> "vu en boite"
> 
> It is revealing a bug (see next patch)
> 



More information about the cubicweb-devel mailing list