Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/pip/_internal/__init__.py: 67%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

6 statements  

1from __future__ import annotations 

2 

3from pip._internal.utils import _log 

4 

5# init_logging() must be called before any call to logging.getLogger() 

6# which happens at import of most modules. 

7_log.init_logging() 

8 

9 

10def main(args: list[str] | None = None) -> int: 

11 """This is preserved for old console scripts that may still be referencing 

12 it. 

13 

14 For additional details, see https://github.com/pypa/pip/issues/7498. 

15 """ 

16 from pip._internal.utils.entrypoints import _wrapper 

17 

18 return _wrapper(args)