dbus-python/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch

40 lines
1.4 KiB
Diff
Raw Permalink Normal View History

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