__init__.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:iCount 作者: tomazc 项目源码 文件源码
def get_ftp_instance(base_url):
    """
    Get ftplib.FTP object that is connected to base_url.

    Returns
    -------
    ftplib.FTP
        FTP object connected to base_url.

    """
    try:
        ftp = ftplib.FTP(base_url)
        ftp.login()
        return ftp
    except Exception:
        raise ConnectionError('Problems connecting to ENSEMBL FTP server.')


# pylint: disable=redefined-outer-name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号