1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/pip/utils
Marc Abramowitz 954b818f24 Reduce duplication of 'pypi.python.org'
by creating a PyPI object

Before:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/cmdoptions.py
    195:    default='https://pypi.python.org/simple/',

    pip/commands/search.py
    33:            default='https://pypi.python.org/pypi',

    pip/index.py
    305:            if page is None and 'pypi.python.org' not in str(main_index_url):
    706:                        ).netloc.endswith("pypi.python.org")):

    pip/utils/outdated.py
    107:                "https://pypi.python.org/pypi/pip/json",

After:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/index.py
    77:PyPI = Index(url='https://pypi.python.org/', trusted=True)
2014-12-16 08:21:24 -08:00
..
__init__.py Implement PEP 440 2014-12-13 13:50:21 -05:00
appdirs.py Implement platform specific user config locations 2014-09-10 11:43:34 -04:00
build.py Use a secure randomized build directory when possible 2014-11-11 20:19:10 -05:00
deprecation.py Switch versioning from X.Y.Z to X.Y dropping the leading 1 2014-09-17 22:05:31 -04:00
logging.py Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
outdated.py Reduce duplication of 'pypi.python.org' 2014-12-16 08:21:24 -08:00
ui.py Prevent zero division error in download speed calculation 2014-09-29 19:52:16 +01:00