summaryrefslogtreecommitdiff
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorJoshua Root <jmr@macports.org>2022-02-10 04:06:19 +1100
committerGitHub <noreply@github.com>2022-02-09 18:06:19 +0100
commitbf2d44ffb06e8f49aacc6b1c140a6717df5cf897 (patch)
tree3a800a1bc6bf17b549cb2d0e43ff0046835a0baa /Python/Python-tokenize.c
parentc0a5ebeb1239020f2ecc199053bb1a70d78841a1 (diff)
downloadcpython-git-bf2d44ffb06e8f49aacc6b1c140a6717df5cf897.tar.gz
bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693)
Numeric fields of type float, notably mtime, can't be represented exactly in the ustar header, so the pax header is used. But it is helpful to set them to the nearest int (i.e. second rather than nanosecond precision mtimes) in the ustar header as well, for the benefit of unarchivers that don't understand the pax header. Add test for tarfile.TarInfo.create_pax_header to confirm correct behaviour.
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions