On Mon, Mar 04, 2019 at 06:31:48PM +0000, Andrew Cooper wrote:
> The issues are:
>  * dict.has_key() was completely removed in Py3
>  * dict.keys() is an iterable rather than list in Py3, so .sort() doesn't 
> work.
>  * list.sort(cmp=) was deprecated in Py2.4 and removed in Py3.  Replace it
>    with a key= sort instead.
> 
> This is all compatible with Py2.4 and later, which is when the sorted()
> builtin was introduced.  Tested with Py2.7 and Py3.4
> 
> Reported-by: George Dunlap <[email protected]>
> Signed-off-by: Andrew Cooper <[email protected]>

Acked-by: Wei Liu <[email protected]>

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to