diff options
author | Guido van Rossum <guido@python.org> | 1996-05-28 19:52:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-05-28 19:52:40 (GMT) |
commit | 68ded217f72722bb06453b6c36415a8ba2a5864f (patch) | |
tree | 7ea4121303709833e9303e2ef4c28119bcbf1ae2 /Lib/mimify.py | |
parent | 507f15b254550ce8e756f7a642bc9861a41c35aa (diff) | |
download | cpython-68ded217f72722bb06453b6c36415a8ba2a5864f.zip cpython-68ded217f72722bb06453b6c36415a8ba2a5864f.tar.gz cpython-68ded217f72722bb06453b6c36415a8ba2a5864f.tar.bz2 |
minor fix to mime header regex --Sjoerd
Diffstat (limited to 'Lib/mimify.py')
-rwxr-xr-x | Lib/mimify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mimify.py b/Lib/mimify.py index 1582199..3f41de4 100755 --- a/Lib/mimify.py +++ b/Lib/mimify.py @@ -239,7 +239,7 @@ def mime_encode(line, header): line = line[i:] return newline + line -mime_header = regex.compile('\\([ \t(]\\)\\([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*\\)\\([ \t)]\\|$\\)') +mime_header = regex.compile('\\([ \t(]\\|^\\)\\([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*\\)\\([ \t)]\\|$\\)') def mime_encode_header(line): '''Code a single header line as quoted-printable.''' |