util.py 文件源码

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

项目:ipwb 作者: oduwsdl 项目源码 文件源码
def compareCurrentAndLatestIPWBVersions():
    try:
        resp = urllib2.urlopen('https://pypi.python.org/pypi/ipwb/json')
        jResp = json.loads(resp.read())
        latestVersion = jResp['info']['version']
        currentVersion = re.sub(r'\.0+', '.', ipwbVersion)
        return (currentVersion, latestVersion)
    except:
        return (None, None)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号