mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
minor fix to mime header regex --Sjoerd
This commit is contained in:
parent
507f15b254
commit
68ded217f7
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ def mime_encode(line, header):
|
||||||
line = line[i:]
|
line = line[i:]
|
||||||
return newline + line
|
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):
|
def mime_encode_header(line):
|
||||||
'''Code a single header line as quoted-printable.'''
|
'''Code a single header line as quoted-printable.'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue