mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
gh-95463: Remove backwards incompatible change regarding the _MASK_UTF_FILENAME flags in bpo-28080 (GH-96072)
Automerge-Triggered-By: GH:pablogsal
This commit is contained in:
parent
ba4bb7e464
commit
9d066e2aa6
|
@ -480,7 +480,7 @@ def FileHeader(self, zip64=None):
|
|||
|
||||
def _encodeFilenameFlags(self):
|
||||
try:
|
||||
return self.filename.encode('ascii'), self.flag_bits & ~_MASK_UTF_FILENAME
|
||||
return self.filename.encode('ascii'), self.flag_bits
|
||||
except UnicodeEncodeError:
|
||||
return self.filename.encode('utf-8'), self.flag_bits | _MASK_UTF_FILENAME
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Remove an incompatible change from :issue:`28080` that caused a regression
|
||||
that ignored the utf8 in ``ZipInfo.flag_bits``. Patch by Pablo Galindo.
|
Loading…
Reference in a new issue