summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-04-04 18:53:15 +0200
committermathieui <mathieui@mathieui.net>2020-04-04 18:53:15 +0200
commit9126bd83921a3c2857f6f99ecc12e70bc755393c (patch)
treed213ddc6f03672f26d6a8323a768f483778199bc
parent02202f7cd8a5a3f811390796780143126fb09744 (diff)
parent5fc757f2005c0b265dd61270bda4ea216b350aca (diff)
downloadslixmpp-9126bd83921a3c2857f6f99ecc12e70bc755393c.tar.gz
slixmpp-9126bd83921a3c2857f6f99ecc12e70bc755393c.tar.bz2
slixmpp-9126bd83921a3c2857f6f99ecc12e70bc755393c.tar.xz
slixmpp-9126bd83921a3c2857f6f99ecc12e70bc755393c.zip
Merge branch 'fix-deprecations' into 'master'
Fix deprecation warning regarding invalid escape sequences. See merge request poezio/slixmpp!40
-rw-r--r--slixmpp/plugins/xep_0323/stanza/sensordata.py2
-rw-r--r--slixmpp/thirdparty/mini_dateutil.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0323/stanza/sensordata.py b/slixmpp/plugins/xep_0323/stanza/sensordata.py
index c0906cac..7ab1e3ba 100644
--- a/slixmpp/plugins/xep_0323/stanza/sensordata.py
+++ b/slixmpp/plugins/xep_0323/stanza/sensordata.py
@@ -516,7 +516,7 @@ class Field(ElementBase):
:param value: string
"""
- pattern = re.compile("^\d+([|]\w+([.]\w+)*([|][^,]*)?)?(,\d+([|]\w+([.]\w+)*([|][^,]*)?)?)*$")
+ pattern = re.compile(r"^\d+([|]\w+([.]\w+)*([|][^,]*)?)?(,\d+([|]\w+([.]\w+)*([|][^,]*)?)?)*$")
if pattern.match(value) is not None:
self.xml.stringIds = value
else:
diff --git a/slixmpp/thirdparty/mini_dateutil.py b/slixmpp/thirdparty/mini_dateutil.py
index e751a448..882a531f 100644
--- a/slixmpp/thirdparty/mini_dateutil.py
+++ b/slixmpp/thirdparty/mini_dateutil.py
@@ -160,7 +160,7 @@ except:
return _fixed_offset_tzs[offsetmins]
- _iso8601_parser = re.compile("""
+ _iso8601_parser = re.compile(r"""
^
(?P<year> [0-9]{4})?(?P<ymdsep>-?)?
(?P<month>[0-9]{2})?(?P=ymdsep)?