mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
gh-102507 Remove invisible pagebreak characters (#102531)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
parent
401d7a7f00
commit
b097925858
16 changed files with 6 additions and 45 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue