11 Star 0 Fork 15

src-openEuler / dbus-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-deprecation-warnings-due-to-invalid-escape-seque.patch 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/dbus-python.git
git@gitee.com:src-openeuler/dbus-python.git
src-openeuler
dbus-python
dbus-python
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891