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/host.py

    r1482 r1502  
    1313
    1414import ftplib
    15 import pickle
    1615import stat
    1716import sys
     
    900899
    901900    def __getstate__(self):
    902         raise pickle.PicklingError("pickling is deliberately unsupported")
     901        raise TypeError("cannot serialize FTPHost object")
    903902
    904903    #
Note: See TracChangeset for help on using the changeset viewer.