Opened 3 years ago

Closed 3 years ago

#122 closed defect (invalid)

FTPHost() deprecated?

Reported by: ftputiluser Owned by: schwa
Priority: trivial Milestone:
Component: Library Version:
Keywords: Cc:

Description (last modified by schwa)

The following code of FTPHost lets PyCharm think that FTPHost() is deprecated:

          "`use_list_a_option` will default to `False` in ftputil 4.x.x",
          DeprecationWarning, stacklevel=2)

I attached a screenshot of PyCharm.

Greetings from Chemnitz :-)

Attachments (1)

ftphost-deprecated.png (13.3 KB) - added by ftputiluser 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by ftputiluser

Attachment: ftphost-deprecated.png added

comment:1 Changed 3 years ago by schwa

Hi Thomas! :-)

Thanks for the report.

To me, the behavior looks like a bug in PyCharm. The warning is triggered from the constructor of FTPHost, but this doesn't mean that FTPHost itself is deprecated.

What is deprecated is to rely on "hidden" folders and files to be listed by default. (In ftputil 4.x, they won't be.) I haven't found a way to show them by default without unpleasant side effects, see ticket #110, which explains the problem in more detail.

comment:2 Changed 3 years ago by schwa

Priority: majortrivial

Unless you have a good counter-argument, I'd close this ticket with resolution "invalid".

comment:3 Changed 3 years ago by schwa

Description: modified (diff)

comment:4 Changed 3 years ago by schwa

Resolution: invalid
Status: newclosed

I'm closing the ticket as "invalid" since there weren't any further replies from the reporter.

Note: See TracTickets for help on using tickets.