Your message dated Tue, 02 Mar 2021 08:19:08 +0000
with message-id <e1lh0fi-000eul...@fasolo.debian.org>
and subject line Bug#983342: fixed in python3-simpletal 5.2-2
has caused the Debian Bug report #983342,
regarding python3-simpletal: cgi.escape removed in python3.8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
983342: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983342
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-simpletal
Version: 5.2-1.1
Severity: important
Tags: patch upstream
X-Debbugs-Cc: cont...@olivieraubert.net

Dear Maintainer,

the cgi.escape method (which is used in simpleTALUtils) has been marked as
deprecated since python 3.2, and removed in python3.8. To make it work
with current python versions, cgi.escape should be replaced by html.escape

Here is a patch for fixing this issue. I also have reported it upstream.

Best regards, and thanks for you work

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-5-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to 
C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-simpletal depends on:
ii  python3  3.9.1-1

python3-simpletal recommends no packages.

python3-simpletal suggests no packages.

-- no debconf information
diff --git a/lib/simpletal/simpleTALUtils.py b/lib/simpletal/simpleTALUtils.py
index ee78690..860d74f 100644
--- a/lib/simpletal/simpleTALUtils.py
+++ b/lib/simpletal/simpleTALUtils.py
@@ -34,7 +34,7 @@
                Module Dependencies: None
 """
 
-import io, os, stat, threading, sys, codecs, cgi, re, types, logging
+import io, os, stat, threading, sys, codecs, html, re, types, logging
 from . import __version__, simpleTAL
 
 # This is used to check for already escaped attributes.
@@ -114,7 +114,7 @@ def tagAsText (tag,atts):
                        # We already have some escaped characters in here, so 
assume it's all valid
                        result += ' %s="%s"' % (name, value)
                else:
-                       result += ' %s="%s"' % (name, cgi.escape (value))
+                       result += ' %s="%s"' % (name, html.escape (value))
        result += ">"
        return result
 
@@ -195,11 +195,11 @@ def cmdEndTagEndScope (self, command, args):
                                                self.file.write (str (str 
(resultVal), 'ascii'))
                        else:
                                if (isinstance (resultVal, str)):
-                                       self.file.write (cgi.escape (resultVal))
+                                       self.file.write (html.escape 
(resultVal))
                                elif (isinstance (resultVal, bytes)):
-                                       self.file.write (cgi.escape (str 
(resultVal, 'ascii')))
+                                       self.file.write (html.escape (str 
(resultVal, 'ascii')))
                                else:
-                                       self.file.write (cgi.escape (str (str 
(resultVal), 'ascii')))
+                                       self.file.write (html.escape (str (str 
(resultVal), 'ascii')))
                                        
                if (self.outputTag and not args[1]):
                        self.file.write ('</' + args[0] + '>')

--- End Message ---
--- Begin Message ---
Source: python3-simpletal
Source-Version: 5.2-2
Done: Nilesh Patra <nil...@debian.org>

We believe that the bug you reported is fixed in the latest version of
python3-simpletal, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 983...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nilesh Patra <nil...@debian.org> (supplier of updated python3-simpletal package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 02 Mar 2021 13:09:07 +0530
Source: python3-simpletal
Architecture: source
Version: 5.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Nilesh Patra <nil...@debian.org>
Closes: 983342
Changes:
 python3-simpletal (5.2-2) unstable; urgency=medium
 .
   * Team Upload.
   [ Jelmer Vernooij ]
   * Add debian/upstream/metadata.
 .
   [ Ondřej Nový ]
   * Use debhelper-compat instead of debian/compat.
   * d/control: Fix wrong Vcs-*.
   * d/control: Update Maintainer field with new Debian Python Team
     contact address.
   * d/control: Update Vcs-* fields with new Debian Python Team Salsa
     layout.
 .
   [ Debian Janitor ]
   * Update standards version, no changes needed.
   * Bump debhelper from old 11 to 12.
   * Remove obsolete fields Name, Contact from debian/upstream/metadata.
 .
   [ Nilesh Patra ]
   * Replace cgi.escape by html.escape
     - Thank you, Olivier Aubert! (Closes: #983342)
   * Add "Rules-Requires-Root:no"
Checksums-Sha1:
 4902b2a55baefc25830a92de5c5b3033b2000cec 2094 python3-simpletal_5.2-2.dsc
 e2e32ad1d16bd37bd6399579812294b750926238 3112 
python3-simpletal_5.2-2.debian.tar.xz
 067e8e804ca2bb5549206af0a6a833368bdf534c 6018 
python3-simpletal_5.2-2_amd64.buildinfo
Checksums-Sha256:
 e1f516a764f60bb57670cee881719115d76a9a0cfd073d0fd83637cdfb8cf72b 2094 
python3-simpletal_5.2-2.dsc
 cb35cd5592ac5f00a388c22cd8de3d7d445738cbf075f20ec8bfbf45c5e8d489 3112 
python3-simpletal_5.2-2.debian.tar.xz
 a9c946f6a8ec0472ec1ac7e15ce2d5cf82f6915055ac7e8d3e2abcc429fe84ba 6018 
python3-simpletal_5.2-2_amd64.buildinfo
Files:
 f96436e56e77f14c0611c693044373ff 2094 python optional 
python3-simpletal_5.2-2.dsc
 3ac87587b23ea39d72646f4877020582 3112 python optional 
python3-simpletal_5.2-2.debian.tar.xz
 cee7037f1683c921bbd1b77706b632d1 6018 python optional 
python3-simpletal_5.2-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEPpmlJvXcwMu/HO6mALrnSzQzafEFAmA97LIUHG5wYXRyYTk3
NEBnbWFpbC5jb20ACgkQALrnSzQzafGAPxAAvL51DEeM2bjH1Vk6PIBXBr/PfF7y
f02K4ttJVtxnVbHpoQMJvrBSa0ie8nSBaLRXwGCGVIHwc6oX6/8kmMIZcta5/3G4
cyERqnJaNH3Z7nMyDqFERoyMw2kxdz+QR2l02bocdArJ+pbwneme70XwEKSD5U+O
f3ONcCqmAjUYEpUpE+4c6i6NqwJde6gPm423p03R4KiWbmFtjO6qECaYJJYq01bL
2IGG/fGGcNTJqz5f05rQEXKog3aYsKik5J6anIHJppLTlfgcW04V0oGjJILM4CU9
wS0lhnvPaJ714usUdTXVsNnBgayUviQbfRXaN/RPAMzAxkcpiJ1es/1ncXm2qjO+
R3ECCV4LeSQYb2R7pxSuBrKzVAK02tLt82b3Z4javyS+mJAfa6MvgwrU64PGGSzp
ziKqOsFN7iHFlb1yzR5htWl+Qz2ylK4apnMgvF92IO08fcy3Vhzh6fQDJxQQIXrN
kQqqfJL8uOX7EfdonrRCBYpFX0U+CrpAYSJ+/jwsIgUF9fKpCQlGYu2KPK41hpUV
34smBZ/jdD/HsmWO6G+P1DYvoqkXhjPSceL36baDE6IG0YRejk/AN8R9xLyLrD+Z
Z4kAApt1phYeO/XKJDFoHmPf8wc6aV8pBelDMb+RVcqddrbWV2tTQ3jCK3oIXioc
puEiIfKMDEEy7Jg=
=3mfK
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to