diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-04-04 16:08:44 +0000 |
---|---|---|
committer | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-04-04 16:08:44 +0000 |
commit | 5fc757f2005c0b265dd61270bda4ea216b350aca (patch) | |
tree | 0fa804361a06406192e4ffc3b0ba0ee328af2165 | |
parent | 98108d0445575c2de5701accaab3afabd9f6c500 (diff) | |
download | slixmpp-5fc757f2005c0b265dd61270bda4ea216b350aca.tar.gz slixmpp-5fc757f2005c0b265dd61270bda4ea216b350aca.tar.bz2 slixmpp-5fc757f2005c0b265dd61270bda4ea216b350aca.tar.xz slixmpp-5fc757f2005c0b265dd61270bda4ea216b350aca.zip |
Fix deprecation warning regarding invalid escape sequences.
-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)? |