~sschwarzer/ftputil#122: 
FTPHost() deprecated?

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

        warnings.warn(
          "`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 :-)

Status
RESOLVED INVALID
Submitter
ftputiluser (unverified)
Assigned to
No-one
Submitted
5 years ago
Updated
5 years ago
Labels
bug library

schwa (unverified) 5 years ago · edit

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.

schwa (unverified) 5 years ago · edit

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

schwa (unverified) 5 years ago · edit

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

Register here or Log in to comment, or comment via email.