Opened 10 years ago

Closed 10 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: fbissey Owned by: sage-combinat
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 fbissey)

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 fbissey 10 years ago.
replace type.cmp by cmp in strata.py

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by fbissey

replace type.cmp by cmp in strata.py

comment:1 Changed 10 years ago by fbissey

  • Authors set to François Bissey
  • Description modified (diff)
  • Status changed from new to needs_review

comment:2 Changed 10 years ago by nthiery

  • Reviewers set to Nicolas M. Thiéry
  • Status changed from needs_review to positive_review

comment:3 Changed 10 years ago by fbissey

Merci.

comment:4 Changed 10 years ago by jdemeyer

  • Merged in set to sage-4.7.1.alpha0
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.