Skip to content

Commit 5a67c8a

Browse files
committed
Fix type annotations and unused imports in fs.ftpfs
1 parent 2d9b637 commit 5a67c8a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/ftpfs.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
import socket
1313
import threading
1414
import typing
15-
import warnings
1615
from collections import OrderedDict
1716
from contextlib import contextmanager
1817
from ftplib import FTP
1918

20-
2119
try:
2220
from ftplib import FTP_TLS
2321
except 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]

0 commit comments

Comments
 (0)