X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fnet%2Fftp%2Fftpscan.py;h=51c92f36c9f799f9f3dc319a540861d5dcddb194;hb=3f0f88bf83f84474c61efacfbf14cdbeb22f30e3;hp=469e44be58882796908c8546927cb156da6c1596;hpb=87ed070d1b1776366d3ddd15eef1f37a45c585ea;p=m_lib.git diff --git a/m_lib/net/ftp/ftpscan.py b/m_lib/net/ftp/ftpscan.py index 469e44b..51c92f3 100755 --- a/m_lib/net/ftp/ftpscan.py +++ b/m_lib/net/ftp/ftpscan.py @@ -4,7 +4,7 @@ from __future__ import print_function import ftplib -from m_lib.net.ftp.ftpparse import ftpparse +from .ftpparse import ftpparse class FtpScanError(Exception): pass @@ -165,7 +165,7 @@ def ftpscanrecursive(ftp_server, ftp_port=None, login=None, password=None, # The server does not implement LIST -R and # treats -R as a name of a directory (-: ftp.quit() - raise FtpScanError, "the server does not implement recursive listing" + raise FtpScanError("the server does not implement recursive listing") ftp.quit() tree = [] @@ -193,7 +193,7 @@ def ftpscanrecursive(ftp_server, ftp_port=None, login=None, password=None, tree.append((current_dir, files)) if len(tree) == 1: - raise FtpScanError, "the server ignores -R in LIST" + raise FtpScanError("the server ignores -R in LIST") return tree