Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 520752
Collapse All | Expand All

(-)portage-2.2.12.orig/pym/portage/mail.py (-1 / +2 lines)
Lines 49-54 Link Here
49
	from email.header import Header
49
	from email.header import Header
50
	from email.mime.base import MIMEBase as BaseMessage
50
	from email.mime.base import MIMEBase as BaseMessage
51
	from email.mime.multipart import MIMEMultipart as MultipartMessage
51
	from email.mime.multipart import MIMEMultipart as MultipartMessage
52
	from email.utils import formatdate
52
53
53
	if sys.hexversion < 0x3000000:
54
	if sys.hexversion < 0x3000000:
54
		sender = _unicode_encode(sender,
55
		sender = _unicode_encode(sender,
Lines 91-97 Link Here
91
	#    input_bytes = s.encode(input_charset, errors)
92
	#    input_bytes = s.encode(input_charset, errors)
92
	#UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)
93
	#UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)
93
	mymessage["Subject"] = Header(_force_ascii_if_necessary(subject))
94
	mymessage["Subject"] = Header(_force_ascii_if_necessary(subject))
94
	mymessage["Date"] = time.strftime("%a, %d %b %Y %H:%M:%S %z")
95
	mymessage["Date"] = formatdate(localtime=True)
95
	
96
	
96
	return mymessage
97
	return mymessage
97
98

Return to bug 520752