!11 Fix deprecation warnings due to invalid escape sequences
From: @panxh_purple Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
6555114b6a
39
Fix-deprecation-warnings-due-to-invalid-escape-seque.patch
Normal file
39
Fix-deprecation-warnings-due-to-invalid-escape-seque.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
From e4a898cfea9cc7f8a1f82e93029d40881b4b6739 Mon Sep 17 00:00:00 2001
|
||||||
|
From: openEuler Buildteam <buildteam@openeuler.org>
|
||||||
|
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
|
||||||
|
|
||||||
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
Name: dbus-python
|
Name: dbus-python
|
||||||
Version: 1.2.18
|
Version: 1.2.18
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: original Python binding for dbus
|
Summary: original Python binding for dbus
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
|
URL: http://www.freedesktop.org/wiki/Software/DBusBindings/
|
||||||
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
|
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
|
Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc
|
||||||
Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch
|
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-devel dbus-glib-devel glib2-devel
|
||||||
BuildRequires: dbus-x11 python3-gobject
|
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
|
%doc NEWS ChangeLog README doc/API_CHANGES.txt doc/tutorial.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 27 2021 panxiaohe <panxiaohe@huawei.com> - 1.2.18-2
|
||||||
|
- Fix deprecation warnings due to invalid escape sequences
|
||||||
|
|
||||||
* Fri Jul 30 2021 panxiaohe <panxiaohe@huawei.com> - 1.2.18-1
|
* Fri Jul 30 2021 panxiaohe <panxiaohe@huawei.com> - 1.2.18-1
|
||||||
- update to 1.2.18
|
- update to 1.2.18
|
||||||
- remove unnecessary BuildRequires: gdb
|
- remove unnecessary BuildRequires: gdb
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user