Ticket #11264: trac_11264-replace_typecmp_in_strata.patch

File trac_11264-replace_typecmp_in_strata.patch, 634 bytes (added by fbissey, 10 years ago)

replace type.cmp by cmp in strata.py

  • sage/combinat/iet/strata.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1303962541 -43200
    # Node ID ac27d932bdf6d9c16f3341240f5ef744f050b3f6
    # Parent  fe473e0c06b8ca2a0b592665f7ca04be9c81922a
    #11264 replace type.__cmp__ with cmp. This is needed to upgrade python.
    
    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