Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Js2Py for openSUSE:Factory 
checked in at 2026-07-21 23:10:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Js2Py (Old)
 and      /work/SRC/openSUSE:Factory/.python-Js2Py.new.24530 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Js2Py"

Tue Jul 21 23:10:02 2026 rev:13 rq:1366854 version:0.74

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Js2Py/python-Js2Py.changes        
2025-06-27 23:08:46.631819989 +0200
+++ /work/SRC/openSUSE:Factory/.python-Js2Py.new.24530/python-Js2Py.changes     
2026-07-21 23:10:15.209996099 +0200
@@ -1,0 +2,6 @@
+Tue Jul 21 05:09:54 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-315.patch:
+  * Support Python 3.15 changes with code objects.
+
+-------------------------------------------------------------------

New:
----
  support-python-315.patch

----------(New B)----------
  New:
- Add patch support-python-315.patch:
  * Support Python 3.15 changes with code objects.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Js2Py.spec ++++++
--- /var/tmp/diff_new_pack.SyhEPS/_old  2026-07-21 23:10:15.866018528 +0200
+++ /var/tmp/diff_new_pack.SyhEPS/_new  2026-07-21 23:10:15.870018665 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Js2Py
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,8 @@
 # PATCH-FIX-UPSTREAM 313-compatibility.patch gh#PiotrDabkowski/Js2Py#334 
[email protected]
 # Compatibility with Python 3.13
 Patch3:         313-compatibility.patch
+# PATCH-FIX-OPENSUSE Support code (as in the object) changes with Python 3.15+
+Patch4:         support-python-315.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pyjsparser}
 BuildRequires:  %{python_module setuptools}

++++++ support-python-315.patch ++++++
Index: Js2Py-0.74/js2py/utils/injector.py
===================================================================
--- Js2Py-0.74.orig/js2py/utils/injector.py
+++ Js2Py-0.74/js2py/utils/injector.py
@@ -193,12 +193,14 @@ def append_arguments(code_obj, new_local
                 else:
                     modified.extend(write_instruction(dis.opmap["NOP"], 0))
     code = bytes(modified)
-    args = (co_argcount + new_locals_len, 0,
+    args = [co_argcount + new_locals_len, 0,
             code_obj.co_nlocals + new_locals_len, code_obj.co_stacksize,
             code_obj.co_flags, code, code_obj.co_consts, names, varnames,
             code_obj.co_filename, code_obj.co_name,
-            code_obj.co_firstlineno, code_obj.co_lnotab,
-            code_obj.co_freevars, code_obj.co_cellvars)
+            code_obj.co_firstlineno,
+            code_obj.co_freevars, code_obj.co_cellvars]
+    if sys.version_info[:2] < (3, 15):
+        args.insert(12, code_obj.co_lnotab)
     # Done modifying codestring - make the code object
     if hasattr(code_obj, "replace"):
         # Python 3.8+

Reply via email to