File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import socket
1313import threading
1414import typing
15- import warnings
1615from collections import OrderedDict
1716from contextlib import contextmanager
1817from ftplib import FTP
1918
20-
2119try :
2220 from ftplib import FTP_TLS
2321except ImportError as err :
@@ -705,7 +703,7 @@ def getmeta(self, namespace="standard"):
705703 return _meta
706704
707705 def getmodified (self , path ):
708- # type: (Text) -> Optional[datetime]
706+ # type: (Text) -> Optional[datetime.datetime ]
709707 if self .supports_mdtm :
710708 _path = self .validatepath (path )
711709 with self ._lock :
@@ -714,7 +712,7 @@ def getmodified(self, path):
714712 response = self .ftp .sendcmd (cmd )
715713 mtime = self ._parse_ftp_time (response .split ()[1 ])
716714 return epoch_to_datetime (mtime )
717- return super ().getmodified (self , path )
715+ return super (FTPFS , self ).getmodified (path )
718716
719717 def listdir (self , path ):
720718 # type: (Text) -> List[Text]
You can’t perform that action at this time.
0 commit comments