Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions package/yast2-python-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 25 14:41:32 UTC 2026 - Dominique Leuenberger <dimstar@opensuse.org>

- Fix build failure with SWIG 4.5 and Python 3.13 (boo#1275515)
- 5.0.3

-------------------------------------------------------------------
Mon Nov 13 09:44:31 UTC 2023 - Noel Power <nopower@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-python-bindings.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%bcond_with python2
%endif
Name: yast2-python-bindings
Version: 5.0.2
Version: 5.0.3
Release: 0
Summary: Python bindings for the YaST platform
License: GPL-2.0-only
Expand Down
4 changes: 3 additions & 1 deletion src/ytypes.i
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
%{
#include "compat.h"

YCPValue pyval_to_ycp(PyObject *input)
{
int ret;
Expand All @@ -24,7 +26,7 @@ YCPValue pyval_to_ycp(PyObject *input)
return YCPString(PyString_AsString(input));
if (PyUnicode_Check(input)) {
#if PY_MAJOR_VERSION >= 3
return YCPString(_PyUnicode_AsString(input));
return YCPString(PyUnicode_AsUTF8(input));
#else
PyObject* encoded = PyUnicode_AsEncodedString(input, "utf8", NULL);
return YCPString(PyBytes_AsString(encoded));
Expand Down
Loading