As explained on the mailing list, a future version 4.0 of ftputil will drop support for Python 2.
For the upcoming version 3.4, add deprecation warnings to notify users about the future lack of Python 2 support.
The only direct public interfaces of ftputil are in ftputil.host
and
ftputil.error
, so add a warning on the module level for these modules.
Fixed in 115238e52cac5964287a644826ffb0c770d48520.
This change issues a deprecation warning under Python 2 as soon as
ftputil
is imported. This also applies toftputil.error
to catch ftputil exceptions, even when not usingftputil.FTPHost
.