Do not use cmp for sorting lists and dictionaries
Bug #1094909 reported by
Garth Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UFL |
Fix Released
|
Medium
|
Martin Sandve Alnæs |
Bug Description
cmp has been removed from Python 3. To be ready for the change, UFL should not use cmp, but should implement __lt__ and __eq__.
Changed in ufl: | |
milestone: | none → 1.1.0-alpha |
Changed in ufl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed. (__cmp__ was only implemented in graph.py, which is only used by sfc afaik, and will be removed at some point in the future since uflacs has does these things better).