Ignore:
Timestamp:
Apr 23, 2014, 8:14:45 AM (5 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Raise `TypeError` instead of `PicklingError`.

See also
https://mail.python.org/pipermail/python-list/2014-April/671002.html
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/file.py

    r1482 r1502  
    1111
    1212import io
    13 import pickle
    1413
    1514import ftputil.compat
     
    304303
    305304    def __getstate__(self):
    306         raise pickle.PicklingError("pickling is deliberately unsupported")
     305        raise TypeError("cannot serialize FTPFile object")
Note: See TracChangeset for help on using the changeset viewer.