summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2020-08-06 08:21:21 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-08-06 08:24:33 +0200
commita4afb373934bf8c30627b12cfc9790c03572e224 (patch)
treed50e15a6c768230634a89ca51474d8485c196563 /bin
parent32c0816558ccecc464a3b35199ad4d1d6fe88dbf (diff)
bin/report-vuln: switch to python3
Diffstat (limited to 'bin')
-rwxr-xr-xbin/report-vuln11
1 files changed, 3 insertions, 8 deletions
diff --git a/bin/report-vuln b/bin/report-vuln
index 1900dc8d62..ffa3ecc12f 100755
--- a/bin/report-vuln
+++ b/bin/report-vuln
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
#
# generate bug report content/mail for a given package name and a
# number of CVE ids
@@ -9,18 +9,13 @@
#
# export http_proxy if you need to use an http proxy to report bugs
-from __future__ import print_function
-
import argparse
from tempfile import NamedTemporaryFile
import os
import re
import sys
-try:
- from urllib import urlencode, urlopen
-except ImportError:
- from urllib.parse import urlencode
- from urllib.request import urlopen
+from urllib.parse import urlencode
+from urllib.request import urlopen
from textwrap import wrap
temp_id = re.compile('(?:CVE|cve)\-[0-9]{4}-XXXX')

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