summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Yundt <swagfortress@gmail.com>2021-09-11 18:08:09 -0400
committerSimon McVittie <smcv@collabora.com>2021-09-15 19:38:56 +0100
commit7628ca0e34db0ad4d5570bec6668ce1184aa99c2 (patch)
treec083082c3f3eb3067691f2ca8402b69133b2c421
parente9c3702079f13c06ab615596cfc5a2c1207db8fd (diff)
downloaddbus-python-7628ca0e34db0ad4d5570bec6668ce1184aa99c2.tar.gz
Fix invalid escape sequence warnings
Backslashes only allowed in string literals if they're part of an escape sequence (raw strings are an exception to this rule).[1] This change fixes some string literals that broke this rule. 1. https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals Resolves: dbus/dbus-python#40 Signed-off-by: Jason Yundt <swagfortress@gmail.com>
-rw-r--r--dbus/connection.py2
-rw-r--r--dbus/proxies.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbus/connection.py b/dbus/connection.py
index daabfc2..fd20800 100644
--- a/dbus/connection.py
+++ b/dbus/connection.py
@@ -378,7 +378,7 @@ class Connection(_Connection):
this name.
`arg...` : unicode or UTF-8 str
If there are additional keyword parameters of the form
- ``arg``\ *n*, match only signals where the *n*\ th argument
+ ``arg``\\ *n*, match only signals where the *n*\\ th argument
is the value given for that keyword parameter. As of this
time only string arguments can be matched (in particular,
object paths and signatures can't).
diff --git a/dbus/proxies.py b/dbus/proxies.py
index 8489294..487976c 100644
--- a/dbus/proxies.py
+++ b/dbus/proxies.py
@@ -357,7 +357,7 @@ class ProxyObject(object):
this name.
`arg...` : unicode or UTF-8 str
If there are additional keyword parameters of the form
- ``arg``\ *n*, match only signals where the *n*\ th argument
+ ``arg``\\ *n*, match only signals where the *n*\\ th argument
is the value given for that keyword parameter. As of this time
only string arguments can be matched (in particular,
object paths and signatures can't).