Ticket #11422: trac_11422_unpicklefix.patch

File trac_11422_unpicklefix.patch, 995 bytes (added by davidloeffler, 8 years ago)

apply over the two preceding patches

  • sage/modular/arithgroup/arithgroup_perm.py

    # HG changeset patch
    # User David Loeffler <d.loeffler.01@cantab.net>
    # Date 1312028016 -3600
    # Node ID 1d30a9332c2e6500314ed8b4b3533f49ad8795c1
    # Parent  1fd3c53fe6df838971bb539e80063d5560f70d79
    #11422: fix an unpickling failure
    
    diff -r 1fd3c53fe6df -r 1d30a9332c2e sage/modular/arithgroup/arithgroup_perm.py
    a b  
    287287    for p in l:
    288288        p.extend(xrange(len(p),n))
    289289
     290# Tedious point: in order to unpickle pickled objects from prior to patch
     291# #11422, this function needs to accept two non-keyword arguments, to be
     292# interpreted as L and R. Hence the order of the arguments is slightly
     293# different from the class __init__ methods.
    290294
    291295def ArithmeticSubgroup_Permutation(
    292         S2=None, S3=None, L=None, R=None,
     296        L=None, R=None, S2=None, S3=None,
    293297        relabel=False,
    294298        check=True):
    295299    r"""