From 5771606dcdf8d1ec18d05e9129bdaafeda598012 Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Fri, 27 Aug 2021 16:42:33 +0800 Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences --- ...warnings-due-to-invalid-escape-seque.patch | 39 +++++++++++++++++++ dbus-python.spec | 6 ++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 Fix-deprecation-warnings-due-to-invalid-escape-seque.patch diff --git a/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch b/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch new file mode 100644 index 0000000..afdf82a --- /dev/null +++ b/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch @@ -0,0 +1,39 @@ +From e4a898cfea9cc7f8a1f82e93029d40881b4b6739 Mon Sep 17 00:00:00 2001 +From: openEuler Buildteam +Date: Fri, 27 Aug 2021 15:50:50 +0800 +Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences + +--- + dbus/connection.py | 2 +- + dbus/proxies.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/dbus/connection.py b/dbus/connection.py +index f5c8dd9..8895fc9 100644 +--- a/dbus/connection.py ++++ b/dbus/connection.py +@@ -334,7 +334,7 @@ class Connection(_Connection): + bus_name=None, + path=None, + **keywords): +- """Arrange for the given function to be called when a signal matching ++ r"""Arrange for the given function to be called when a signal matching + the parameters is received. + + :Parameters: +diff --git a/dbus/proxies.py b/dbus/proxies.py +index 5852046..9b72542 100644 +--- a/dbus/proxies.py ++++ b/dbus/proxies.py +@@ -304,7 +304,7 @@ class ProxyObject(object): + # """) + + def connect_to_signal(self, signal_name, handler_function, dbus_interface=None, **keywords): +- """Arrange for the given function to be called when the given signal ++ r"""Arrange for the given function to be called when the given signal + is received. + + :Parameters: +-- +1.8.3.1 + diff --git a/dbus-python.spec b/dbus-python.spec index 83becc4..e208c5b 100644 --- a/dbus-python.spec +++ b/dbus-python.spec @@ -2,13 +2,14 @@ Name: dbus-python Version: 1.2.18 -Release: 1 +Release: 2 Summary: original Python binding for dbus License: MIT URL: http://www.freedesktop.org/wiki/Software/DBusBindings/ Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch +Patch1: Fix-deprecation-warnings-due-to-invalid-escape-seque.patch BuildRequires: dbus-devel dbus-glib-devel glib2-devel BuildRequires: dbus-x11 python3-gobject @@ -78,6 +79,9 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && true) %doc NEWS ChangeLog README doc/API_CHANGES.txt doc/tutorial.txt %changelog +* Fri Aug 27 2021 panxiaohe - 1.2.18-2 +- Fix deprecation warnings due to invalid escape sequences + * Fri Jul 30 2021 panxiaohe - 1.2.18-1 - update to 1.2.18 - remove unnecessary BuildRequires: gdb -- Gitee