diff options
author | mathieui <mathieui@mathieui.net> | 2020-04-04 18:53:15 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-04-04 18:53:15 +0200 |
commit | 9126bd83921a3c2857f6f99ecc12e70bc755393c (patch) | |
tree | d213ddc6f03672f26d6a8323a768f483778199bc | |
parent | 02202f7cd8a5a3f811390796780143126fb09744 (diff) | |
parent | 5fc757f2005c0b265dd61270bda4ea216b350aca (diff) | |
download | slixmpp-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.py | 2 | ||||
-rw-r--r-- | slixmpp/thirdparty/mini_dateutil.py | 2 |
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)? |