Your message dated Wed, 11 Mar 2026 12:33:43 +0000
with message-id <[email protected]>
and subject line Bug#1130246: fixed in pyparsing 3.3.2-2
has caused the Debian Bug report #1130246,
regarding pyparsing fails due to the return from the finally block with Python 
3.14
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 [email protected]
immediately.)


-- 
1130246: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1130246
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pyparsing
Version: 3.1.3-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu resolute ubuntu-patch

Dear Maintainer,

Running python-pyvista autopkgtest[1] with Python 3.14 default produces the
following error:

168s
--------------------------------------------------------------------------------
169s ERROR: while parsing the following warning configuration:
169s
169s ignore:The .*interactive_bk.* attribute was deprecated in Matplotlib
3\.9.*:matplotlib.MatplotlibDeprecationWarning
169s
169s This error occurred:
169s
169s Traceback (most recent call last):
169s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
2121, in parse_warning_filter
169s category: type[Warning] = _resolve_warning_category(category_)
169s ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
169s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
2168, in _resolve_warning_category
169s m = __import__(module, None, None, [klass])
169s File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 161, in
<module>
169s from . import _api, _version, cbook, _docstring, rcsetup
169s File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 29, in
<module>
169s from matplotlib._fontconfig_pattern import parse_fontconfig_pattern
169s File "/usr/lib/python3/dist-packages/matplotlib/_fontconfig_pattern.py",
line 15, in <module>
169s from pyparsing import (
169s Group, Optional, ParseException, Regex, StringEnd, Suppress, ZeroOrMore,
one_of)
169s File "/usr/lib/python3/dist-packages/pyparsing/__init__.py", line 132, in
<module>
169s from .core import __diag__, __compat__
169s File "/usr/lib/python3/dist-packages/pyparsing/core.py", line 5637
169s return f"{type(self).__name__}: {retString}"
169s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169s SyntaxError: 'return' in a 'finally' block

This issue was fixed upstream[2] and I have cherry-picked the patch.

The alternative to resolve this issue is to release a new upstream version.

The attached patch can be applied to achieve the following:

  * d/p/0001-Rewrite-to-remove-return-from-finally-block-Issue-57.patch:
    apply upstream patch to resolve the parser failure (LP: #2143696).


Thanks for considering the patch.

[1]
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
resolute/resolute/arm64/p/python-pyvista/20260308_072703_9a7ea@/log.gz
[2] https://github.com/pyparsing/pyparsing/issues/578


-- System Information:
Debian Release: forky/sid
  APT prefers questing-updates
  APT policy: (500, 'questing-updates'), (500, 'questing-security'), (500, 
'questing'), (100, 'questing-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.17.0-14-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru 
pyparsing-3.1.3/debian/patches/0001-Rewrite-to-remove-return-from-finally-block-Issue-57.patch
 
pyparsing-3.1.3/debian/patches/0001-Rewrite-to-remove-return-from-finally-block-Issue-57.patch
--- 
pyparsing-3.1.3/debian/patches/0001-Rewrite-to-remove-return-from-finally-block-Issue-57.patch
      1970-01-01 12:00:00.000000000 +1200
+++ 
pyparsing-3.1.3/debian/patches/0001-Rewrite-to-remove-return-from-finally-block-Issue-57.patch
      2026-03-09 18:58:26.000000000 +1300
@@ -0,0 +1,42 @@
+From 28ef77eb0392ec592a0a22a770a95ef9405c9ef1 Mon Sep 17 00:00:00 2001
+From: ptmcg <[email protected]>
+Date: Mon, 17 Mar 2025 21:28:43 -0500
+Subject: [PATCH] Rewrite to remove return from finally block (Issue #578)
+Bug: https://github.com/pyparsing/pyparsing/issues/578
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pyparsing/+bug/2143696
+Origin: backport, 
https://github.com/pyparsing/pyparsing/commit/28ef77eb0392ec592a0a22a770a95ef9405c9ef1
+
+---
+ pyparsing/__init__.py | 2 +-
+ pyparsing/core.py     | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+--- a/pyparsing/core.py
++++ b/pyparsing/core.py
+@@ -39,7 +39,6 @@
+     __config_flags,
+     _collapse_string_to_ranges,
+     _escape_regex_range_chars,
+-    _bslash,
+     _flatten,
+     LRUMemo as _LRUMemo,
+     UnboundedMemo as _UnboundedMemo,
+@@ -5627,14 +5626,15 @@
+         self._defaultName = ": ..."
+ 
+         # Use the string representation of main expression.
+-        retString = "..."
+         try:
+             if self.expr is not None:
+                 retString = str(self.expr)[:1000]
+             else:
+                 retString = "None"
+-        finally:
+-            return f"{type(self).__name__}: {retString}"
++        except Exception:
++            retString = "..."
++
++        return f"{type(self).__name__}: {retString}"
+ 
+     def copy(self) -> ParserElement:
+         if self.expr is not None:
diff -Nru pyparsing-3.1.3/debian/patches/series 
pyparsing-3.1.3/debian/patches/series
--- pyparsing-3.1.3/debian/patches/series       1970-01-01 12:00:00.000000000 
+1200
+++ pyparsing-3.1.3/debian/patches/series       2026-03-09 18:58:26.000000000 
+1300
@@ -0,0 +1 @@
+0001-Rewrite-to-remove-return-from-finally-block-Issue-57.patch

--- End Message ---
--- Begin Message ---
Source: pyparsing
Source-Version: 3.3.2-2
Done: Alexandre Detiste <[email protected]>

We believe that the bug you reported is fixed in the latest version of
pyparsing, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <[email protected]> (supplier of updated pyparsing 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 [email protected])


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

Format: 1.8
Date: Wed, 11 Mar 2026 13:08:07 +0100
Source: pyparsing
Architecture: source
Version: 3.3.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Alexandre Detiste <[email protected]>
Closes: 1130246
Changes:
 pyparsing (3.3.2-2) unstable; urgency=medium
 .
   * Team Upload
   * Release to unstable (Closes: #1130246)
Checksums-Sha1:
 1331bab21d3c59321b3fca1f2ecb23da47319ba5 2335 pyparsing_3.3.2-2.dsc
 86c19c4e5690f05be43a9114500c0ab716dbdbcd 8648 pyparsing_3.3.2-2.debian.tar.xz
 55f4c9c62a04ea1fb28a1b0f3359e95644446148 8058 
pyparsing_3.3.2-2_source.buildinfo
Checksums-Sha256:
 48db3dea6b12c08057910605067f87011460b58ec85c13cf7c81c7f7e043b4e9 2335 
pyparsing_3.3.2-2.dsc
 4cc104baa5dd432a12a16904a02faae255e1e195feea9cc46782eae08fd1a139 8648 
pyparsing_3.3.2-2.debian.tar.xz
 2d68a9994da49516b7313bd2da79acaa2bf2e11a742d4bf400daed85c1191342 8058 
pyparsing_3.3.2-2_source.buildinfo
Files:
 ef7345113a8dfef964a6f15be2d6f34d 2335 python optional pyparsing_3.3.2-2.dsc
 0c84f2c14af5da67e24c7cd32aed57c6 8648 python optional 
pyparsing_3.3.2-2.debian.tar.xz
 3e893b38ebd768476b27064d94053bd0 8058 python optional 
pyparsing_3.3.2-2_source.buildinfo

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

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmmxXJQRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBq/OhAAh6DY2HKpZnlqFvzDRJK9B8uW34XziR8Q
kldylRfvE20R8pb4G45mD+s9cTaV5PJ9LTAcLmDO/Xkyc9JkIwQc72um3fuQzOrC
7XMj1tP5L2prrGGtAqzfCsW4ug0oe1GDNwEqfqCawmE3gs4nBh9TDiwcLJ9UPtqU
cjl19UAfrNgEk3gvziUUDRywD97vXn7r0Ozefl0jeJYDh7QFPTFEUyN8nF8r7CKn
W4SXaLGSfw25oiSRBhoVnAmqpaHFcdk0PTncJQrSKc0ZL5mR1Mmzb/aMEhDIJ446
8lflge/mMHoUjwzzRJ6FG0JcU36DdBQgFU3tdGhI/7S+mrWEp2rQrzpzdDXPPFOI
0dq+0f43Jp0DqvRWD23vH9zoj2znv5sqe/F8hDK0gAf1mass9hnSONfVXAc2vgtx
Q4J396c0lyDQtRN4e9OYRMFW3wwqEuFzx6btM4aDSvPGluRZyk9h3+MELRNj1+HP
+NtUSCYib/RWl/ejt3NirjV827D+iHpJzP9wVUcqqDvmtHi4YeMmht0pcpYKTLux
DCdzU1ZjvScfhmWy+FqeTNOhob5L3kC3xzHJZpxQvC+XO+wxruGZckI5lhPEgjVw
IGtjhsmXcdiAf1nhN8172tTrQ7ohRDRil2/1sJlfNHS6SSIUAz8LziEySwRR7WI6
lhitXuiU07k=
=BLgv
-----END PGP SIGNATURE-----

Attachment: pgpfmTQ9t2TR5.pgp
Description: PGP signature


--- End Message ---

Reply via email to