cpython/Lib
Miss Islington (bot) 42f87d435e
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.
(cherry picked from commit bf2d44ffb0)

Co-authored-by: Joshua Root <jmr@macports.org>
2022-02-09 09:31:12 -08:00
..
asyncio bpo-46487: Add get_write_buffer_limits to Write and _SSLProtocol transports (GH-30958) 2022-02-01 11:30:03 -08:00
collections Fix minor details in the Counter docs (GH-31029) (GH-31072) 2022-02-01 23:28:07 -06:00
concurrent bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168) 2022-01-04 06:27:13 -08:00
ctypes [3.10] bpo-46584: remove check for py2.3 from ctypes/test_python_api (GH-31024) (GH-31054) 2022-02-01 06:42:37 -08:00
curses
dbm
distutils [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
email [3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28930) 2021-10-13 19:12:22 +02:00
encodings [3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952) 2021-10-14 21:23:39 +03:00
ensurepip bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746) 2021-10-06 00:15:46 +02:00
html [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
http bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28771) 2021-10-06 20:29:23 +02:00
idlelib Optimize images by IMGbot (GH-21348) 2022-02-04 16:31:21 +09:00
importlib [3.10] bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_cache (GH-29384) (GH-30922) 2022-01-27 06:00:23 -08:00
json bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943) 2021-12-07 02:20:10 -08:00
lib2to3 bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035) 2022-01-31 12:03:40 -08:00
logging [3.10] bpo-42378: fixed log truncation on logging shutdown (GH-27310) (GH-30468) 2022-01-07 22:15:25 +00:00
msilib [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-29 12:36:59 +01:00
multiprocessing bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) 2021-08-09 10:39:05 -07:00
pydoc_data Python 3.10.2 2022-01-13 18:52:14 +00:00
site-packages
sqlite3 bpo-45677: Reword first section of sqlite3 docs (GH-29326) (GH-29566) 2021-11-15 15:31:38 -08:00
test bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693) 2022-02-09 09:31:12 -08:00
tkinter bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) 2021-12-26 04:04:26 -08:00
turtledemo bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448) 2021-05-29 03:34:57 -04:00
unittest bpo-41403: Improve error message for invalid mock target (GH-30833) (GH-30834) 2022-01-23 19:34:43 +00:00
urllib Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478) 2021-07-30 16:25:28 +02:00
venv [3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30034) 2021-12-10 17:51:42 +00:00
wsgiref [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
xml Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478) 2021-07-30 16:25:28 +02:00
xmlrpc bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH-28934) 2021-10-13 19:59:45 +02:00
zoneinfo [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
__future__.py Set the release for __future__.annotations to 3.11 (#25596) 2021-04-25 17:09:24 +01:00
__phello__.foo.py
_aix_support.py
_bootsubprocess.py
_collections_abc.py bpo-44791: Fix substitution of ParamSpec in Concatenate with different parameter expressions (GH-27518) 2022-01-27 05:01:24 -08:00
_compat_pickle.py
_compression.py bpo-41486: Faster bz2/lzma/zlib via new output buffering (GH-21740) 2021-04-27 23:58:54 -07:00
_markupbase.py
_osx_support.py [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-29 12:36:59 +01:00
_py_abc.py
_pydecimal.py bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679) 2021-06-13 07:05:28 -07:00
_pyio.py bpo-43680: Deprecate io.OpenWrapper (GH-25357) 2021-04-14 03:24:33 +02:00
_sitebuiltins.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) 2021-04-06 11:18:41 +09:00
_strptime.py bpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627) 2021-03-03 08:58:57 -08:00
_threading_local.py
_weakrefset.py bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads attempt to commit the last pending removal (GH-27921) 2021-08-28 11:09:21 -07:00
abc.py Clarify the order of a stacked abstractmethod (GH-26892) 2021-06-27 11:50:38 -07:00
aifc.py
antigravity.py
argparse.py bpo-46080: fix argparse help generation exception in edge case (GH-30111) 2022-01-20 15:13:17 -08:00
ast.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
asynchat.py [3.10] bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import (GH-26882) (GH-26904) 2021-06-24 12:57:55 -07:00
asyncore.py [3.10] bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import (GH-26882) (GH-26904) 2021-06-24 12:57:55 -07:00
base64.py
bdb.py fix docstring typo in bdb.py (GH-22323) (#26179) 2021-05-17 00:42:56 +01:00
binhex.py
bisect.py
bz2.py bpo-45475: Revert __iter__ optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) 2021-10-18 20:15:48 -07:00
calendar.py bpo-46266: Add calendar day of week constants to __all__ (GH-30412) (GH-30424) 2022-01-23 02:00:11 +01:00
cgi.py bpo-41139: Deprecate cgi.log() (GH-25625) 2021-04-29 11:36:04 +09:00
cgitb.py bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
chunk.py
cmd.py
code.py
codecs.py
codeop.py [3.10] bpo-46521: Fix codeop to use a new partial-input mode of the parser (GH-31010). (GH-31213) 2022-02-08 12:25:15 +00:00
colorsys.py
compileall.py Fix missing space with help for -m compileall -o (GH-27591) (GH-28430) 2021-09-18 01:02:32 +02:00
configparser.py [3.10] bpo-45173: Note configparser deprecations will be removed in 3.12 (GH-31084) 2022-02-02 10:41:30 -08:00
contextlib.py [3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730) 2021-10-04 23:21:34 -07:00
contextvars.py
copy.py bpo-45752: Remove "array" from list of things that cannot be copied in copy module docstring (GH-29555) 2021-11-14 05:18:31 -08:00
copyreg.py bpo-44676: Serialize the union type using only public API (GH-27323) (GH-27340) 2021-07-24 22:35:33 +03:00
cProfile.py
crypt.py
csv.py bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) (GH-27494) 2021-07-30 19:30:09 +02:00
dataclasses.py bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) 2021-12-05 13:04:29 -08:00
datetime.py Fix typo (GH-23019) 2021-02-03 13:25:28 -08:00
decimal.py
difflib.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
dis.py [3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480) (GH-29506) 2021-11-09 22:05:30 +00:00
doctest.py bpo-44904: Fix classmethod property bug in doctest module (GH-28838) 2021-10-28 01:09:41 -07:00
enum.py bpo-44559: [Enum] restore fixes lost in 3.9 reversion (GH-29114) 2021-10-20 19:48:37 -07:00
filecmp.py bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166) 2021-08-04 13:03:33 -07:00
fileinput.py bpo-43651: Fix EncodingWarning in fileinput and its test (GH-25648) 2021-04-27 15:47:16 +09:00
fnmatch.py
fractions.py bpo-43420: Simple optimizations for Fraction's arithmetics (GH-24779) 2021-03-21 21:30:55 -05:00
ftplib.py bpo-43285 Make ftplib not trust the PASV response. (GH-24838) 2021-03-15 11:39:31 -07:00
functools.py [3.10] bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) (GH-30254) 2021-12-25 16:12:32 +02:00
genericpath.py
getopt.py
getpass.py update docstring for win_getpass to reflect code changes (GH-24967) 2021-05-04 00:08:09 -07:00
gettext.py
glob.py bpo-44482: Fix very unlikely resource leak in glob in non-CPython implementations (GH-26843) (GH-26872) 2021-06-23 13:28:08 +03:00
graphlib.py [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-29 12:36:59 +01:00
gzip.py bpo-45475: Revert __iter__ optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) 2021-10-18 20:15:48 -07:00
hashlib.py bpo-43880: Show DeprecationWarnings for deprecated ssl module features (GH-25455) 2021-04-19 07:27:10 +02:00
heapq.py
hmac.py bpo-40645: use C implementation of HMAC (GH-24920) 2021-03-27 06:55:03 -07:00
imaplib.py
imghdr.py
imp.py bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167) 2021-04-03 15:31:15 -07:00
inspect.py bpo-43118: Fix bug in inspect.signature around 'base.__text_signature__' (GH-30285) (#30765) 2022-01-22 09:28:48 -08:00
io.py bpo-43680: Deprecate io.OpenWrapper (GH-25357) 2021-04-14 03:24:33 +02:00
ipaddress.py bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172) 2021-05-17 12:42:08 -07:00
keyword.py bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917) 2021-02-26 14:51:55 -08:00
linecache.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
locale.py bpo-34311: Add locale.localize (GH-15275) 2021-04-12 14:17:40 +02:00
lzma.py bpo-45475: Revert __iter__ optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) 2021-10-18 20:15:48 -07:00
mailbox.py
mailcap.py
mimetypes.py bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28289) 2021-09-13 19:24:29 +02:00
modulefinder.py
netrc.py bpo-43733: netrc try to use UTF-8 before using locale encoding. (GH-25781) 2021-05-02 14:01:02 +09:00
nntplib.py
ntpath.py bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) 2021-04-28 16:50:17 +01:00
nturl2path.py bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539) 2021-04-23 18:02:47 +01:00
numbers.py bpo-44072: fix Complex, Integral docs for ** (GH-25986) 2021-05-14 15:22:45 -07:00
opcode.py bpo-43754: Eliminate bindings for partial pattern matches (GH-25229) 2021-05-02 13:02:10 -07:00
operator.py bpo-44558: Match countOf is/== treatment to c (GH-27007) 2021-07-07 06:50:41 -07:00
optparse.py
os.py bpo-43651: Fix EncodingWarning in os.fdopen() and test_os (GH-25654) 2021-04-29 11:35:36 +09:00
pathlib.py bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (GH-27421) 2021-07-28 17:01:47 +02:00
pdb.py bpo-46434: Handle missing docstrings in pdb help (GH-30705) 2022-01-21 11:32:43 -08:00
pickle.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
pickletools.py
pipes.py Change type check to isinstance in pipes (GH-27291) (GH-27416) 2021-07-28 16:08:51 +02:00
pkgutil.py [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-29 12:36:59 +01:00
platform.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
plistlib.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
poplib.py
posixpath.py bpo-26329: update os.path.normpath documentation (GH-20138) (GH-27094) 2021-07-12 17:07:46 +02:00
pprint.py bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129) 2021-10-21 14:16:59 -07:00
profile.py
pstats.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
pty.py bpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754) 2021-08-13 04:21:06 -07:00
py_compile.py bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848) 2021-10-15 05:14:35 -07:00
pyclbr.py bpo-40443: Remove unused imports (GH-25429) 2021-04-16 11:26:06 +02:00
pydoc.py bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc (GH-23200) 2021-08-29 05:57:22 -07:00
queue.py
quopri.py
random.py bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25872) 2021-05-03 19:45:30 -07:00
re.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
reprlib.py
rlcompleter.py bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) (GH-27447) 2021-07-29 17:44:42 +02:00
runpy.py bpo-41718: runpy now imports pkgutil in functions (GH-24996) 2021-03-23 19:22:57 +01:00
sched.py
secrets.py
selectors.py
shelve.py
shlex.py
shutil.py bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508) 2021-09-22 23:42:19 +01:00
signal.py [3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080) 2021-12-13 12:14:51 +02:00
site.py bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) 2021-03-29 12:28:14 +09:00
smtpd.py [3.10] bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import (GH-26882) (GH-26904) 2021-06-24 12:57:55 -07:00
smtplib.py bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) 2021-08-29 07:43:39 -07:00
sndhdr.py
socket.py bpo-40635: Fix getfqdn() docstring and docs (GH-27971) 2021-08-26 12:54:52 -07:00
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py
ssl.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
stat.py
statistics.py Fix double-space in exception message (GH-29955) 2021-12-08 03:07:27 -08:00
string.py
stringprep.py
struct.py
subprocess.py [3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800) 2021-08-17 11:33:34 -07:00
sunau.py
symtable.py
sysconfig.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
tabnanny.py
tarfile.py bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693) 2022-02-09 09:31:12 -08:00
telnetlib.py
tempfile.py bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29111) 2021-10-20 23:27:30 +02:00
textwrap.py
this.py
threading.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
timeit.py
token.py bpo-43822: Improve syntax errors for missing commas (GH-25377) 2021-04-15 21:38:45 +01:00
tokenize.py bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27500) 2021-08-02 11:43:45 +02:00
trace.py Fix typo in Lib/trace.py (GH-24309) 2021-02-01 21:16:38 +05:30
traceback.py bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726) (GH-29826) 2021-11-29 10:07:24 +00:00
tracemalloc.py
tty.py
turtle.py bpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29629) 2021-11-19 19:55:40 +01:00
types.py bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) 2021-12-05 13:26:37 -08:00
typing.py [3.10] bpo-46676: Make ParamSpec args and kwargs equal to themselves (GH-31203) (GH-31210) 2022-02-08 10:41:13 +02:00
uu.py
uuid.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
warnings.py
wave.py
weakref.py bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads attempt to commit the last pending removal (GH-27921) 2021-08-28 11:09:21 -07:00
webbrowser.py bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
xdrlib.py
zipapp.py
zipfile.py bpo-43651: Fix EncodingWarning in zipfile (GH-25650) 2021-04-27 15:45:31 +09:00
zipimport.py [3.10] bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) (#28438) 2021-09-17 17:46:22 -07:00