summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-28 19:52:40 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-28 19:52:40 (GMT)
commit68ded217f72722bb06453b6c36415a8ba2a5864f (patch)
tree7ea4121303709833e9303e2ef4c28119bcbf1ae2 /Lib
parent507f15b254550ce8e756f7a642bc9861a41c35aa (diff)
downloadcpython-68ded217f72722bb06453b6c36415a8ba2a5864f.zip
cpython-68ded217f72722bb06453b6c36415a8ba2a5864f.tar.gz
cpython-68ded217f72722bb06453b6c36415a8ba2a5864f.tar.bz2
minor fix to mime header regex --Sjoerd
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/mimify.py2
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.'''