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)
评论列表
文章目录