diff options
author | Guido van Rossum <guido@python.org> | 1997-12-02 17:45:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-02 17:45:39 (GMT) |
commit | 11fbef5f927dbe0d2898b7e15d055adddec1fd19 (patch) | |
tree | 9e34ff3eb7c9aa785b3c7fe2db6b42dcdb8120c1 /Lib/mimify.py | |
parent | 30e817ef320932282ee56865a4be79352113a9e0 (diff) | |
download | cpython-11fbef5f927dbe0d2898b7e15d055adddec1fd19.zip cpython-11fbef5f927dbe0d2898b7e15d055adddec1fd19.tar.gz cpython-11fbef5f927dbe0d2898b7e15d055adddec1fd19.tar.bz2 |
Sjoerd sez: global substitute \240 with \177.
Diffstat (limited to 'Lib/mimify.py')
-rwxr-xr-x | Lib/mimify.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/mimify.py b/Lib/mimify.py index c03eb95..fb79db7 100755 --- a/Lib/mimify.py +++ b/Lib/mimify.py @@ -214,8 +214,8 @@ def unmimify(infile, outfile, decode_base64 = 0): unmimify_part(nifile, ofile, decode_base64) ofile.flush() -mime_char = re.compile('[=\240-\377]') # quote these chars in body -mime_header_char = re.compile('[=?\240-\377]') # quote these in header +mime_char = re.compile('[=\177-\377]') # quote these chars in body +mime_header_char = re.compile('[=?\177-\377]') # quote these in header def mime_encode(line, header): '''Code a single line as quoted-printable. @@ -249,7 +249,7 @@ def mime_encode(line, header): line = line[i:] return newline + line -mime_header = re.compile('([ \t(]|^)([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*)([ \t)]|\n)') +mime_header = re.compile('([ \t(]|^)([-a-zA-Z0-9_+]*[\177-\377][-a-zA-Z0-9_+\177-\377]*)([ \t)]|\n)') def mime_encode_header(line): '''Code a single header line as quoted-printable.''' @@ -267,7 +267,7 @@ def mime_encode_header(line): mv = re.compile('^mime-version:', re.I) cte = re.compile('^content-transfer-encoding:', re.I) -iso_char = re.compile('[\240-\377]') +iso_char = re.compile('[\177-\377]') def mimify_part(ifile, ofile, is_mime): '''Convert an 8bit part of a MIME mail message to quoted-printable.''' |