Update create_pygmentize_bundle for package changes

On <https://pypi.python.org/pypi/Pygments/2.2.0>, the python_version
field is now "py2.py3".

Change-Id: I07e615b4b25a79c0b8dde4d3ce07b54a746ddbd8
This commit is contained in:
Kunal Mehta 2017-01-29 01:15:33 -08:00
parent 4dac7d24f0
commit 50ce659e51

View file

@ -36,7 +36,7 @@ pypi = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
latest_version = pypi.package_releases('Pygments')[0]
for release in pypi.release_urls('Pygments', latest_version):
if (release['packagetype'] == 'bdist_wheel' and
release['python_version'].startswith('2')):
release['python_version'].startswith('py2')):
url = release['url']
md5_digest = release['md5_digest']
break