コード例 #1
0
ファイル: message.py プロジェクト: 0924wyr/blog_code
 def __init__(self, text, subtype, charset):
     self.encoding = charset
     MIMEText.__init__(self, text, subtype, charset)
コード例 #2
0
ファイル: message.py プロジェクト: Nucleoos/risk-premium
 def __init__(self, text, subtype, charset):
     self.encoding = charset
     MIMEText.__init__(self, text, subtype, charset)
コード例 #3
0
ファイル: submit.py プロジェクト: yarikoptic/reportbug
 def __init__(self, _text, _subtype='plain', _charset=None):
     MIMEText.__init__(self, _text, _subtype, 'us-ascii')
     # Only set the charset paraemeter to non-ASCII if the body
     # includes unprintable characters
     if notascii2.search(_text):
         self.set_param('charset', _charset)
コード例 #4
0
ファイル: submit.py プロジェクト: tuckms/RootFS-RaspberryPI
 def __init__(self, _text, _subtype='plain', _charset=None):
     MIMEText.__init__(self, _text, _subtype, 'us-ascii')
     # Only set the charset paraemeter to non-ASCII if the body
     # includes unprintable characters
     if notascii2.search(_text):
         self.set_param('charset', _charset)