1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From: Sophie Brun <sophie@kali.org>
Date: Tue, 25 Mar 2025 11:04:51 +0100
Subject: Fix syntax warning
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085784
---
pontos/updateheader/updateheader.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pontos/updateheader/updateheader.py b/pontos/updateheader/updateheader.py
index de45324..e4af398 100644
--- a/pontos/updateheader/updateheader.py
+++ b/pontos/updateheader/updateheader.py
@@ -41,18 +41,18 @@ SUPPORTED_FILE_TYPES = [
".xsl",
]
OLD_LINES = [
- "# \-\*\- coding: utf\-8 \-\*\-",
+ "# \\-\\*\\- coding: utf\\-8 \\-\\*\\-",
"This program is free software: you can redistribute it and/or modify",
"it under the terms of the GNU Affero General Public License as",
"published by the Free Software Foundation, either version 3 of the",
- "License, or \(at your option\) any later version.",
+ "License, or \\(at your option\\) any later version.",
"This program is free software; you can redistribute it and/or",
"modify it under the terms of the GNU General Public License",
"version 2 as published by the Free Software Foundation.",
"This program is free software: you can redistribute it and/or modify",
"it under the terms of the GNU General Public License as published by",
"the Free Software Foundation, either version 3 of the License, or",
- "\(at your option\) any later version.",
+ "\\(at your option\\) any later version.",
"This program is distributed in the hope that it will be useful,",
"but WITHOUT ANY WARRANTY; without even the implied warranty of",
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
@@ -62,7 +62,7 @@ OLD_LINES = [
"You should have received a copy of the GNU General Public License",
"along with this program. If not, see <http://www.gnu.org/licenses/>.",
"along with this program; if not, write to the Free Software",
- "Foundation, Inc\., 51 Franklin St, Fifth Floor, Boston, MA 02110\-1301 USA\.", # noqa: E501
+ "Foundation, Inc\\., 51 Franklin St, Fifth Floor, Boston, MA 02110\\-1301 USA\\.", # noqa: E501
]
|