Opened 11 years ago

Closed 11 years ago

#11264 closed defect (fixed)

sage/combinat/iet/strata.py is the last place in sage to use the deprecated type.__cmp__ operator, easy fix.

Reported by: François Bissey Owned by: Sage Combinat CC user
Priority: major Milestone: sage-4.7.1
Component: combinatorics Keywords:
Cc: Merged in: sage-4.7.1.alpha0
Authors: François Bissey Reviewers: Nicolas M. Thiéry
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by François Bissey)

type.cmp has been removed from python-2.6.5 and later and is only used in one place in sage. It can be safely replaced by cmp. This will be needed to upgrade python.

Apply:

Attachments (1)

trac_11264-replace_typecmp_in_strata.patch (634 bytes) - added by François Bissey 11 years ago.
replace type.cmp by cmp in strata.py

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by François Bissey

replace type.cmp by cmp in strata.py

comment:1 Changed 11 years ago by François Bissey

Authors: François Bissey
Description: modified (diff)
Status: newneeds_review

comment:2 Changed 11 years ago by Nicolas M. Thiéry

Reviewers: Nicolas M. Thiéry
Status: needs_reviewpositive_review

comment:3 Changed 11 years ago by François Bissey

Merci.

comment:4 Changed 11 years ago by Jeroen Demeyer

Merged in: sage-4.7.1.alpha0
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.