gh-47061: Deprecate chunk (GH-91419)

This commit is contained in:
Brett Cannon 2022-04-11 15:02:41 -07:00 committed by GitHub
parent 8be8949116
commit 3869a839d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 124 additions and 4 deletions

View file

@ -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