public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dill] rawhide: Backport upstream patch for python 3.15
@ 2026-05-30 19:30
0 siblings, 0 replies; only message in thread
From: @ 2026-05-30 19:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-dill
Branch : rawhide
Commit : 79983482295c5fab94a326812189d7202721d0fc
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date : 2026-05-25T13:18:11+02:00
Stats : +27/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-dill/c/79983482295c5fab94a326812189d7202721d0fc?branch=rawhide
Log:
Backport upstream patch for python 3.15
- Fixes: rhbz#2479741
---
diff --git a/755.patch b/755.patch
new file mode 100644
index 0000000..b8184fe
--- /dev/null
+++ b/755.patch
@@ -0,0 +1,24 @@
+From f22385f3e0b34ae9aac090de2d2c26586af0cc3d Mon Sep 17 00:00:00 2001
+From: mmckerns <mmckerns@caltech.edu>
+Date: Sat, 23 May 2026 17:52:30 -0400
+Subject: [PATCH] handle missing co_lntab in 3.15.0b1
+
+---
+ dill/_dill.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/dill/_dill.py b/dill/_dill.py
+index 27ab56c6..da8aee22 100644
+--- a/dill/_dill.py
++++ b/dill/_dill.py
+@@ -1187,8 +1187,8 @@ def save_code(pickler, obj):
+ with warnings.catch_warnings():
+ if not OLD312a7: # issue 597
+ warnings.filterwarnings('ignore', category=DeprecationWarning)
+- args = (
+- obj.co_lnotab, # for < python 3.10 [not counted in args]
++ args = ( # [not counted in args]
++ getattr(obj, 'co_lnotab', b''), # for < python 3.10; 3.15.0b1+
+ obj.co_argcount, obj.co_posonlyargcount,
+ obj.co_kwonlyargcount, obj.co_nlocals, obj.co_stacksize,
+ obj.co_flags, obj.co_code, obj.co_consts, obj.co_names,
diff --git a/python-dill.spec b/python-dill.spec
index 595d209..fd22723 100644
--- a/python-dill.spec
+++ b/python-dill.spec
@@ -10,6 +10,9 @@ License: BSD-3-Clause
URL: https://github.com/uqfoundation/dill
Source: %{pypi_source dill}
+# python 3.15 compatibility
+Patch: https://github.com/uqfoundation/dill/pull/755.patch
+
BuildArch: noarch
BuildRequires: python3-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-30 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 19:30 [rpms/python-dill] rawhide: Backport upstream patch for python 3.15
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox