Kaydet (Commit) 68ded217 authored tarafından Guido van Rossum's avatar Guido van Rossum

minor fix to mime header regex --Sjoerd

üst 507f15b2
......@@ -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.'''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment