summaryrefslogtreecommitdiff
path: root/src/pip/_internal/utils/encoding.py
Commit message (Collapse)AuthorAgeFilesLines
* Blacken src/pip/_internal/utils directoryJon Dufresne2021-02-211-12/+12
|
* Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-4/+1
| | | | | | | | | | | The typing module has been available since Python 3.5. Guarding the import has been unnecessary since dropping Python 2. Some guards remain to either: - Avoid circular imports - Importing objects that are also guarded by typing.TYPE_CHECKING - Avoid mypy_extensions dependency
* Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-3/+2
| | | | | | | | The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim.
* Replace typing.Text with strJon Dufresne2020-12-241-3/+3
| | | | | | | Using typing.Text is unnecessary since dropping Python 2 support. In Python 3, typing.Text is a simple alias of str. It exists as a backward compatibility shim for Python 2.
* Update linter: isortPradyun Gedam2020-09-231-1/+1
|
* Assert not None instead of if checkDevesh Kumar Singh2020-05-211-3/+3
|
* Type annotations for pip._internal.utils.encodingDevesh Kumar Singh2020-05-201-5/+4
|
* Use mypy's inline configuration syntax for opt-outsPradyun Gedam2019-07-301-0/+3
|
* Fix utils.encoding.auto_decode() LookupError with invalid encodingsMiro Hrončok2019-03-011-7/+7
| | | | | | | | | | | | | | | utils.encoding.auto_decode() was broken when decoding Big Endian BOM byte-strings on Little Endian or vice versa. The TestEncoding.test_auto_decode_utf_16_le test was failing on Big Endian systems, such as Fedora's s390x builders. A similar test, but with BE BOM test_auto_decode_utf_16_be was added in order to reproduce this on a Little Endian system (which is much easier to come by). A regression test was added to check that all listed encodings in utils.encoding.BOMS are valid. Fixes https://github.com/pypa/pip/issues/6054
* remove #noqa: F401Maxim Kurnikov2019-02-221-1/+1
|
* Add type annotations for pip._internal.utils and pip._internal.vcs.__init__ ↵Maxim Kurnikov2018-12-081-1/+7
| | | | | | (#6061)
* Move all internal APIs to pip._internalDonald Stufft2017-08-311-0/+33