mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-47061: Deprecate chunk
(GH-91419)
This commit is contained in:
parent
8be8949116
commit
3869a839d5
5 changed files with 124 additions and 4 deletions
|
@ -48,6 +48,10 @@ specifies whether or not chunks are aligned on 2-byte boundaries. The
|
|||
default is 1, i.e. aligned.
|
||||
"""
|
||||
|
||||
import warnings
|
||||
|
||||
warnings._deprecated(__name__, remove=(3, 13))
|
||||
|
||||
class Chunk:
|
||||
def __init__(self, file, align=True, bigendian=True, inclheader=False):
|
||||
import struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue