Add codecs.BOM* constants (#6515)

This commit is contained in:
Akuli
2021-12-06 17:36:09 +02:00
committed by GitHub
parent bc912ea472
commit 08649177f1
2 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,11 @@ from abc import abstractmethod
from typing import IO, Any, BinaryIO, Callable, Generator, Iterable, Iterator, Protocol, TextIO, Tuple, Type, TypeVar, overload
from typing_extensions import Literal
BOM32_BE: bytes
BOM32_LE: bytes
BOM64_BE: bytes
BOM64_LE: bytes
# TODO: this only satisfies the most common interface, where
# bytes is the raw form and str is the cooked form.
# In the long run, both should become template parameters maybe?

View File

@@ -482,10 +482,6 @@ cgi.FieldStorage.read_urlencoded
cgi.FieldStorage.skip_lines
cgi.print_arguments
cgi.print_exception
codecs.BOM32_BE
codecs.BOM32_LE
codecs.BOM64_BE
codecs.BOM64_LE
codecs.StreamReader.charbuffertype
codecs.StreamReader.seek
codecs.StreamWriter.seek