Opened 2 years ago
Closed 2 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 )
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 :-)
Attachments (1)
Change History (5)
Changed 2 years ago by
Attachment: | ftphost-deprecated.png added |
---|
comment:1 Changed 2 years ago by
comment:2 Changed 2 years ago by
Priority: | major → trivial |
---|
Unless you have a good counter-argument, I'd close this ticket with resolution "invalid".
comment:3 Changed 2 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 2 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
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 thatFTPHost
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.