Projet

Général

Profil

0001-fields-do-not-store-cached-block-in-pickle-58985.patch

Frédéric Péters, 25 novembre 2021 12:18

Télécharger (792 octets)

Voir les différences:

Subject: [PATCH] fields: do not store cached block in pickle (#58985)

 wcs/fields.py | 6 ++++++
 1 file changed, 6 insertions(+)
wcs/fields.py
3465 3465
        node.text = od_clean_text(force_text(value))
3466 3466
        return node
3467 3467

  
3468
    def __getstate__(self):
3469
        odict = copy.copy(self.__dict__)
3470
        if '_block' in odict:
3471
            del odict['_block']
3472
        return odict
3473

  
3468 3474

  
3469 3475
class ComputedField(Field):
3470 3476
    key = 'computed'
3471
-