Ignore:
Timestamp:
05/12/19 07:18:47 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Fixed pickling of PIREPs saved with Python 2 (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/rpc.py

    r928 r955  
    22from . import rpccommon
    33
    4 from .common import MAVA_BASE_URL
     4from .common import MAVA_BASE_URL, fixUnpickled
    55
    66import jsonrpclib
     
    322322        print("foglalas_id=%s" % ("0" if self.id is None else self.id,), file=f)
    323323
     324    def __setstate__(self, state):
     325        """Set the state from the given unpickled dictionary."""
     326        self.__dict__.update(fixUnpickled(state))
     327
    324328#---------------------------------------------------------------------------------------
    325329
Note: See TracChangeset for help on using the changeset viewer.