blob: afdf82a1b78d2b51cf4313b6b9e5019b803a7cf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
|