Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ldaptor for openSUSE:Factory checked in at 2024-02-09 23:53:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ldaptor (Old) and /work/SRC/openSUSE:Factory/.python-ldaptor.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ldaptor" Fri Feb 9 23:53:37 2024 rev:8 rq:1145314 version:21.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ldaptor/python-ldaptor.changes 2023-06-12 15:27:06.683286263 +0200 +++ /work/SRC/openSUSE:Factory/.python-ldaptor.new.1815/python-ldaptor.changes 2024-02-09 23:53:54.914413118 +0100 @@ -1,0 +2,6 @@ +Fri Feb 9 00:47:56 UTC 2024 - Steve Kowalik <[email protected]> + +- Add patchuse-configparser.patch: + * Use non-deprecated configparser class. + +------------------------------------------------------------------- New: ---- use-configparser.patch BETA DEBUG BEGIN: New: - Add patchuse-configparser.patch: * Use non-deprecated configparser class. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ldaptor.spec ++++++ --- /var/tmp/diff_new_pack.iCF059/_old 2024-02-09 23:53:55.406430847 +0100 +++ /var/tmp/diff_new_pack.iCF059/_new 2024-02-09 23:53:55.406430847 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-ldaptor # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,11 +23,12 @@ Release: 0 Summary: A Pure-Python Twisted library for LDAP License: MIT -Group: Development/Languages/Python URL: https://github.com/twisted/ldaptor Source: https://files.pythonhosted.org/packages/source/l/ldaptor/ldaptor-%{version}.tar.gz # PATCH-FIX-UPSTREAM remove-infinite-tmpfile-creation.patch -- gh#twisted/ldaptor#238 Patch1: remove-infinite-tmpfile-creation.patch +# PATCH-FIX-UPSTREAM gh#twisted/ldaptor#242 +Patch2: use-configparser.patch BuildRequires: %{python_module Twisted-tls} BuildRequires: %{python_module passlib} BuildRequires: %{python_module pip} @@ -42,7 +43,7 @@ Requires: python-pyparsing Requires: python-zope.interface Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -93,7 +94,7 @@ %doc README.rst %license LICENSE %{python_sitelib}/ldaptor -%{python_sitelib}/ldaptor-%{version}*-info +%{python_sitelib}/ldaptor-%{version}.dist-info %{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do print(rpm.expand("%python_alternative %{_bindir}/" .. b.. "\n")) end} ++++++ use-configparser.patch ++++++ >From 4b44090a95fb288749ce5ec843ac7a57121de8fa Mon Sep 17 00:00:00 2001 From: Steve Kowalik <[email protected]> Date: Fri, 9 Feb 2024 11:43:49 +1100 Subject: [PATCH] Use configparser.ConfigParser SafeconfigParser has been deprecated since Python 3.2, and was finally removed in 3.12, so switch to it directly. --- ldaptor/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldaptor/config.py b/ldaptor/config.py index 1d5adcc3..3a9e9f73 100644 --- a/ldaptor/config.py +++ b/ldaptor/config.py @@ -136,7 +136,7 @@ def loadConfig(configFiles=None, reload=False): """ global __config if __config is None or reload: - x = configparser.SafeConfigParser() + x = configparser.ConfigParser() for section, options in DEFAULTS.items(): x.add_section(section)
