gh-102507 Remove invisible pagebreak characters (#102531)

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
JosephSBoyle 2023-03-08 13:58:14 +00:00 committed by GitHub
parent 401d7a7f00
commit b097925858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 6 additions and 45 deletions

View file

@ -22,7 +22,6 @@ NLCRE = re.compile(r'\r\n|\r|\n')
fcre = re.compile(r'^From ', re.MULTILINE)
class Generator:
"""Generates output from a Message object tree.
@ -392,7 +391,7 @@ class Generator:
def _compile_re(cls, s, flags):
return re.compile(s, flags)
class BytesGenerator(Generator):
"""Generates a bytes version of a Message object tree.
@ -443,7 +442,6 @@ class BytesGenerator(Generator):
return re.compile(s.encode('ascii'), flags)
_FMT = '[Non-text (%(type)s) part of message omitted, filename %(filename)s]'
class DecodedGenerator(Generator):
@ -503,7 +501,6 @@ class DecodedGenerator(Generator):
}, file=self)
# Helper used by Generator._make_boundary
_width = len(repr(sys.maxsize-1))
_fmt = '%%0%dd' % _width