summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMoritz Mühlenhoff <jmm@debian.org>2021-07-01 17:19:18 +0200
committerMoritz Mühlenhoff <jmm@debian.org>2021-07-01 17:19:57 +0200
commit0588d94860d1a58cc90aef9195a5ae5c320da64e (patch)
treed9ebb16e99dfd67a5f55c6a58bc00896947a968c /bin
parent617704823371769ac2552437b18e3a68ac745617 (diff)
Fix report-vuln for Python 3
Diffstat (limited to 'bin')
-rwxr-xr-xbin/report-vuln2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/report-vuln b/bin/report-vuln
index d0dead6895..35d4f3be64 100755
--- a/bin/report-vuln
+++ b/bin/report-vuln
@@ -247,7 +247,7 @@ def main():
if args.mail:
with NamedTemporaryFile(prefix='report-vuln', suffix='.txt') as bugmail:
- bugmail.write(text)
+ bugmail.write(text.encode())
bugmail.flush()
os.system(args.mailer.format(bugmail.name))
else:

© 2014-2024 Faster IT GmbH | imprint | privacy policy