Skip to content
Snippets Groups Projects
Commit 2c75b292 authored by Mickaël Schoentgen's avatar Mickaël Schoentgen
Browse files

reportbug/submit.py: remove usage of the deprecated 'U' mode

parent fb8c8d4a
No related branches found
No related tags found
1 merge request!73reportbug/submit.py: remove usage of the deprecated 'U' mode
......@@ -163,7 +163,7 @@ def mime_attach(body, attachments, charset, body_charset=None):
maintype, subtype = ctype.split('/', 1)
if maintype == 'text':
try:
with open(attachment, 'rU') as fp:
with open(attachment, 'r') as fp:
part = _MIMEText_wrapper(fp.read())
except UnicodeDecodeError:
fp = open(attachment, 'rb')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment