Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Query PyPI for pkg download URI for a packge

src/g/0/g-pypi-0.3/gpypi/cli.py   g-pypi(Download)
                    continue
                try:
                    url = pypi.get_download_urls(pn, version)[0]
                    # TODO: use setuptools way also
                except IndexError:

src/g/0/g-pypi-HEAD/gpypi/cli.py   g-pypi(Download)
                    continue
                try:
                    url = pypi.get_download_urls(pn, version)[0]
                    # TODO: use setuptools way also
                except IndexError:

src/g/0/g-pypi-0.3/gpypi/tests/test_pypi.py   g-pypi(Download)
            for version in vers:
                try:
                    url = self.pypi.get_download_urls(pn, version)[0]
                except IndexError:
                    pass

src/g/0/g-pypi-HEAD/gpypi/tests/test_pypi.py   g-pypi(Download)
            for version in vers:
                try:
                    url = self.pypi.get_download_urls(pn, version)[0]
                except IndexError:
                    pass