File: 0001-Fix-compatibility-with-Python-3.13.patch

package info (click to toggle)
editobj3 0.2%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: javascript: 9,857; python: 5,475; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Sebastian Ramacher <sramacher@debian.org>
Date: Sun, 15 Dec 2024 21:33:15 +0100
Subject: Fix compatibility with Python 3.13

---
 html_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html_utils.py b/html_utils.py
index 4c53988..be35aa4 100644
--- a/html_utils.py
+++ b/html_utils.py
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from cgi import escape as escape
+from html import escape as escape
 
 def html_escape(s): return escape(s).replace("\n", "<br/>")