Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reportbug
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
reportbug
reportbug
Commits
2c75b292
Commit
2c75b292
authored
2 years ago
by
Mickaël Schoentgen
Browse files
Options
Downloads
Patches
Plain Diff
reportbug/submit.py: remove usage of the deprecated 'U' mode
parent
fb8c8d4a
No related branches found
No related tags found
1 merge request
!73
reportbug/submit.py: remove usage of the deprecated 'U' mode
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reportbug/submit.py
+1
-1
1 addition, 1 deletion
reportbug/submit.py
with
1 addition
and
1 deletion
reportbug/submit.py
+
1
−
1
View file @
2c75b292
...
...
@@ -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
,
'
r
U
'
)
as
fp
:
with
open
(
attachment
,
'
r
'
)
as
fp
:
part
=
_MIMEText_wrapper
(
fp
.
read
())
except
UnicodeDecodeError
:
fp
=
open
(
attachment
,
'
rb
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment