We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13aec71 commit 35972f7Copy full SHA for 35972f7
Lib/tarfile.py
@@ -1385,7 +1385,8 @@ def _proc_pax(self, tarfile):
1385
encoding = None
1386
raw_headers = []
1387
while len(buf) > pos and buf[pos] != 0x00:
1388
- if not (match := _header_length_prefix_re.match(buf, pos)):
+ match = _header_length_prefix_re.match(buf, pos)
1389
+ if not match:
1390
raise InvalidHeaderError("invalid header")
1391
try:
1392
length = int(match.group(1))
0 commit comments