[Git][security-tracker-team/security-tracker][master] 2 commits: bin/check-new-issues: Encode some regexp strings with r''
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Tue Jul 2 10:01:12 BST 2024
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
f61df406 by Salvatore Bonaccorso at 2024-06-29T16:54:41+02:00
bin/check-new-issues: 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>
- - - - -
d60b018d by Emilio Pozuelo Monfort at 2024-07-02T09:00:53+00:00
Merge branch 'check-new-issues-syntaxwarning' into 'master'
bin/check-new-issues: Encode some regexp strings with r''
See merge request security-tracker-team/security-tracker!184
- - - - -
1 changed file:
- bin/check-new-issues
Changes:
=====================================
bin/check-new-issues
=====================================
@@ -654,7 +654,7 @@ def present_issue(name):
break
print(f"back at {name} (you might want to type 'd')")
continue
- elif re.match("^h$", line):
+ elif re.match(r"^h$", line):
print_commands()
continue
elif m := re.match(r"^!(.+)$", line):
@@ -696,14 +696,14 @@ def present_issue(name):
print("New entry set to:")
print_cve(new_entry)
break
- elif m := re.match(f'^r\s+(.*)$', line):
+ elif m := re.match(r'^r\s+(.*)$', line):
pkg = m.group(1).strip()
_, tmpname = tempfile.mkstemp()
subprocess.run(f"bin/report-vuln {pkg} {name} > {tmpname}", shell=True)
subprocess.run(f"{editor} {tmpname}", shell=True)
#os.unlink(tmpname)
continue
- elif m := re.match(f'^n\s+(.*)$', line):
+ elif m := re.match(r'^n\s+(.*)$', line):
nfu = m.group(1).strip()
set_cve_nfu(name, nfu)
print("New entry set to:")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/440f393b98476ba7cc50a4406c66255f866f3a17...d60b018dfd41e08c6b8c948b7357b84f6b7eaa39
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/440f393b98476ba7cc50a4406c66255f866f3a17...d60b018dfd41e08c6b8c948b7357b84f6b7eaa39
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/20240702/3f51face/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list