[Git][security-tracker-team/security-tracker][master] 2 commits: bin/report-vuln: Encode some regexp strings with r''
Salvatore Bonaccorso (@carnil)
carnil at debian.org
Sat Jun 29 15:44:11 BST 2024
Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker
Commits:
520a9681 by Salvatore Bonaccorso at 2024-06-29T16:39:10+02:00
bin/report-vuln: Encode some regexp strings with r''
With python 3.12.y the DeprecationWarning is upgraded to a SyntaxWarning
so these were now visible when running under current unstable with
python 3.12.
Signed-off-by: Salvatore Bonaccorso <carnil at debian.org>
- - - - -
4e67f995 by Salvatore Bonaccorso at 2024-06-29T14:43:56+00:00
Merge branch 'report-vuln-syntaxwarning' into 'master'
bin/report-vuln: Encode some regexp strings with r''
See merge request security-tracker-team/security-tracker!183
- - - - -
1 changed file:
- bin/report-vuln
Changes:
=====================================
bin/report-vuln
=====================================
@@ -19,7 +19,7 @@ from textwrap import wrap
from urllib.parse import urlencode
from urllib.request import urlopen
-temp_id = re.compile('(?:CVE|cve)\-[0-9]{4}-XXXX')
+temp_id = re.compile(r'(?:CVE|cve)\-[0-9]{4}-XXXX')
def description_from_list(id, pkg='', skip_entries=0):
import setup_paths
@@ -211,8 +211,8 @@ def main():
cve = args.cve
# check for valid parameters
- p = re.compile('^[0-9a-z].*')
- c = re.compile('(CVE|cve)\-[0-9]{4}-[0-9]{4,}')
+ p = re.compile(r'^[0-9a-z].*')
+ c = re.compile(r'(CVE|cve)\-[0-9]{4}-[0-9]{4,}')
if not p.match(pkg):
error(pkg + ' does not seem to be a valid source package name')
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/ab27a5be4566d45a81df444f5c094b33a35a91a9...4e67f99599604aafac00b55aee1c60da997a58e4
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/ab27a5be4566d45a81df444f5c094b33a35a91a9...4e67f99599604aafac00b55aee1c60da997a58e4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20240629/d752c1f0/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list