Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#111 closed enhancement (fixed)

Add deprecation warnings on dropping Python 2 support

Reported by: schwa Owned by: schwa
Priority: major Milestone: 3.4
Component: Library Version: 3.3.1
Keywords: deprecation warnings python 2 python 3 Cc:


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 and ftputil.error, so add a warning on the module level for these modules.

Change History (2)

comment:1 Changed 4 years ago by schwa

Status: newassigned

comment:2 Changed 4 years ago by schwa

Resolution: fixed
Status: assignedclosed

Fixed in [c48d3e1a3e8a].

This change issues a deprecation warning under Python 2 as soon as ftputil is imported. This also applies to ftputil.error to catch ftputil exceptions, even when not using ftputil.FTPHost.

Last edited 4 years ago by schwa (previous) (diff)
Note: See TracTickets for help on using tickets.