Ticket #9958: trac_9958-fix_cmp.patch

File trac_9958-fix_cmp.patch, 626 bytes (added by fbissey, 10 years ago)

this form of comparison is removed in python 2.6.5 and later, refreshed using --git.

  • sage/combinat/iet/strata.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1302826669 -43200
    # Node ID 7dc3af502de8a83e8a09ea7f3083be6f40d10f97
    # Parent  4c30a715cf795f85c097341754edfa5b9499516e
    #9958 this is needed to upgrade to version of python over 2.6.4
    
    diff --git a/sage/combinat/iet/strata.py b/sage/combinat/iet/strata.py
    a b  
    13441344                return -1
    13451345            return 0
    13461346
    1347         return type.__cmp__(type(self),type(other))
     1347        return cmp(type(self),type(other))
    13481348
    13491349CCA = ConnectedComponentOfAbelianStratum
    13501350