Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-xmltodict for
openSUSE:Factory checked in at 2026-02-18 17:05:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xmltodict (Old)
and /work/SRC/openSUSE:Factory/.python-xmltodict.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xmltodict"
Wed Feb 18 17:05:07 2026 rev:14 rq:1333515 version:1.0.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xmltodict/python-xmltodict.changes
2025-11-27 15:19:12.263016779 +0100
+++
/work/SRC/openSUSE:Factory/.python-xmltodict.new.1977/python-xmltodict.changes
2026-02-18 17:05:45.110527894 +0100
@@ -1,0 +2,8 @@
+Sun Feb 15 09:18:35 UTC 2026 - Martin Hauke <[email protected]>
+
+- Update to version 1.0.3
+ Bug Fixes
+ * unparse: serialize None text/attrs as empty values
+ (fixes #401) (aa16511).
+
+-------------------------------------------------------------------
Old:
----
xmltodict-1.0.2.tar.gz
New:
----
xmltodict-1.0.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-xmltodict.spec ++++++
--- /var/tmp/diff_new_pack.ngTLYx/_old 2026-02-18 17:05:46.186572680 +0100
+++ /var/tmp/diff_new_pack.ngTLYx/_new 2026-02-18 17:05:46.186572680 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-xmltodict
#
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-xmltodict
-Version: 1.0.2
+Version: 1.0.3
Release: 0
Summary: Module to make XML working resemble JSON
License: MIT
++++++ xmltodict-1.0.2.tar.gz -> xmltodict-1.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/MANIFEST.in
new/xmltodict-1.0.3/MANIFEST.in
--- old/xmltodict-1.0.2/MANIFEST.in 2025-09-17 23:59:06.000000000 +0200
+++ new/xmltodict-1.0.3/MANIFEST.in 2026-02-15 05:04:43.000000000 +0100
@@ -1,3 +1 @@
-include README.md
-include LICENSE
recursive-include tests *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/PKG-INFO new/xmltodict-1.0.3/PKG-INFO
--- old/xmltodict-1.0.2/PKG-INFO 2025-09-17 23:59:11.217250600 +0200
+++ new/xmltodict-1.0.3/PKG-INFO 2026-02-15 05:04:50.649439600 +0100
@@ -1,19 +1,11 @@
Metadata-Version: 2.4
Name: xmltodict
-Version: 1.0.2
+Version: 1.0.3
Summary: Makes working with XML feel like you are working with JSON
Author: Martin Blech
-License: Copyright (C) 2012 Martin Blech and individual contributors.
-
- Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
-
+License-Expression: MIT
Project-URL: Homepage, https://github.com/martinblech/xmltodict
Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
@@ -346,15 +338,15 @@
### RPM-based distro (Fedora, RHEL, …)
-There is an [official Fedora package for
xmltodict](https://apps.fedoraproject.org/packages/python-xmltodict).
+There is an [official Fedora package for
xmltodict](https://packages.fedoraproject.org/pkgs/python-xmltodict/).
```sh
-$ sudo yum install python-xmltodict
+$ sudo yum install python3-xmltodict
```
### Arch Linux
-There is an [official Arch Linux package for
xmltodict](https://www.archlinux.org/packages/community/any/python-xmltodict/).
+There is an [official Arch Linux package for
xmltodict](https://archlinux.org/packages/extra/any/python-xmltodict/).
```sh
$ sudo pacman -S python-xmltodict
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/README.md
new/xmltodict-1.0.3/README.md
--- old/xmltodict-1.0.2/README.md 2025-09-17 23:59:06.000000000 +0200
+++ new/xmltodict-1.0.3/README.md 2026-02-15 05:04:43.000000000 +0100
@@ -311,15 +311,15 @@
### RPM-based distro (Fedora, RHEL, …)
-There is an [official Fedora package for
xmltodict](https://apps.fedoraproject.org/packages/python-xmltodict).
+There is an [official Fedora package for
xmltodict](https://packages.fedoraproject.org/pkgs/python-xmltodict/).
```sh
-$ sudo yum install python-xmltodict
+$ sudo yum install python3-xmltodict
```
### Arch Linux
-There is an [official Arch Linux package for
xmltodict](https://www.archlinux.org/packages/community/any/python-xmltodict/).
+There is an [official Arch Linux package for
xmltodict](https://archlinux.org/packages/extra/any/python-xmltodict/).
```sh
$ sudo pacman -S python-xmltodict
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/pyproject.toml
new/xmltodict-1.0.3/pyproject.toml
--- old/xmltodict-1.0.2/pyproject.toml 2025-09-17 23:59:06.000000000 +0200
+++ new/xmltodict-1.0.3/pyproject.toml 2026-02-15 05:04:43.000000000 +0100
@@ -1,18 +1,18 @@
[build-system]
-requires = ["setuptools>=61", "wheel"]
+requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "xmltodict"
-version = "1.0.2"
+version = "1.0.3"
description = "Makes working with XML feel like you are working with JSON"
readme = "README.md"
requires-python = ">=3.9"
-license = { file = "LICENSE" }
+license = "MIT"
+license-files = ["LICENSE"]
authors = [{ name = "Martin Blech" }]
classifiers = [
"Intended Audience :: Developers",
- "License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/tests/test_dicttoxml.py
new/xmltodict-1.0.3/tests/test_dicttoxml.py
--- old/xmltodict-1.0.2/tests/test_dicttoxml.py 2025-09-17 23:59:06.000000000
+0200
+++ new/xmltodict-1.0.3/tests/test_dicttoxml.py 2026-02-15 05:04:43.000000000
+0100
@@ -573,7 +573,7 @@
assert unparse({"a": {"@param": "flag", "#text": True}},
full_document=False) == '<a param="flag">true</a>'
- assert unparse({"a": {"@param": "test", "#text": None}},
full_document=False) == '<a param="test">None</a>'
+ assert unparse({"a": {"@param": "test", "#text": None}},
full_document=False) == '<a param="test"></a>'
assert unparse({"a": {"@param": "test", "#text": "string"}},
full_document=False) == '<a param="test">string</a>'
@@ -594,3 +594,13 @@
assert unparse({"a": True}, full_document=False) == unparse({"a":
{"#text": True}}, full_document=False)
assert unparse({"a": "hello"}, full_document=False) == unparse({"a":
{"#text": "hello"}}, full_document=False)
+ assert unparse({"a": None}, full_document=False) == unparse({"a":
{"#text": None}}, full_document=False)
+
+
+def test_none_text_with_short_empty_elements_and_attributes():
+ obj = {"x": {"#text": None, "@pro": None}, "y": None}
+ assert unparse(obj, short_empty_elements=True, full_document=False) == '<x
pro=""/><y/>'
+
+
+def test_none_attribute_serializes_as_empty_string():
+ assert unparse({"x": {"@pro": None}}, full_document=False) == '<x
pro=""></x>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/xmltodict.egg-info/PKG-INFO
new/xmltodict-1.0.3/xmltodict.egg-info/PKG-INFO
--- old/xmltodict-1.0.2/xmltodict.egg-info/PKG-INFO 2025-09-17
23:59:11.000000000 +0200
+++ new/xmltodict-1.0.3/xmltodict.egg-info/PKG-INFO 2026-02-15
05:04:50.000000000 +0100
@@ -1,19 +1,11 @@
Metadata-Version: 2.4
Name: xmltodict
-Version: 1.0.2
+Version: 1.0.3
Summary: Makes working with XML feel like you are working with JSON
Author: Martin Blech
-License: Copyright (C) 2012 Martin Blech and individual contributors.
-
- Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
-
+License-Expression: MIT
Project-URL: Homepage, https://github.com/martinblech/xmltodict
Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
@@ -346,15 +338,15 @@
### RPM-based distro (Fedora, RHEL, …)
-There is an [official Fedora package for
xmltodict](https://apps.fedoraproject.org/packages/python-xmltodict).
+There is an [official Fedora package for
xmltodict](https://packages.fedoraproject.org/pkgs/python-xmltodict/).
```sh
-$ sudo yum install python-xmltodict
+$ sudo yum install python3-xmltodict
```
### Arch Linux
-There is an [official Arch Linux package for
xmltodict](https://www.archlinux.org/packages/community/any/python-xmltodict/).
+There is an [official Arch Linux package for
xmltodict](https://archlinux.org/packages/extra/any/python-xmltodict/).
```sh
$ sudo pacman -S python-xmltodict
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/xmltodict-1.0.2/xmltodict.py
new/xmltodict-1.0.3/xmltodict.py
--- old/xmltodict-1.0.2/xmltodict.py 2025-09-17 23:59:06.000000000 +0200
+++ new/xmltodict-1.0.3/xmltodict.py 2026-02-15 05:04:43.000000000 +0100
@@ -379,6 +379,8 @@
if isinstance(value, bool):
return "true" if value else "false"
return str(value)
+
+
def _validate_name(value, kind):
"""Validate an element/attribute name for XML safety.
@@ -491,7 +493,10 @@
children = []
for ik, iv in v.items():
if ik == cdata_key:
- cdata = _convert_value_to_string(iv)
+ if iv is None:
+ cdata = None
+ else:
+ cdata = _convert_value_to_string(iv)
continue
if isinstance(ik, str) and ik.startswith(attr_prefix):
ik = _process_namespace(ik, namespaces, namespace_separator,
@@ -500,9 +505,11 @@
for k, v in iv.items():
_validate_name(k, "attribute")
attr = 'xmlns{}'.format(f':{k}' if k else '')
- attrs[attr] = str(v)
+ attrs[attr] = '' if v is None else str(v)
continue
- if not isinstance(iv, str):
+ if iv is None:
+ iv = ''
+ elif not isinstance(iv, str):
iv = str(iv)
attr_name = ik[len(attr_prefix) :]
_validate_name(attr_name, "attribute")