Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
7cefcdd5 by Philipp Hörist at 2018-11-20T20:00:54Z
Fix deprecated escape sequence
- - - - -
1 changed file:
- nbxmpp/auth_nb.py
Changes:
=====================================
nbxmpp/auth_nb.py
=====================================
@@ -58,12 +58,12 @@ SASL_UNSUPPORTED = 'not-supported'
SASL_IN_PROCESS = 'in-process'
# compile the search regex for _challenge_splitter
-_challenge_regex = re.compile("""
- (\w+) # keyword
- =
- ("[^"]+"|[^,]+) # value
- ,? # optional comma separator
-""", re.VERBOSE)
+_challenge_regex = re.compile(
+ r'(\w+)=' # keyword
+ r'("[^"]+"|[^,]+)' # value
+ r',?', # optional comma separator
+ re.VERBOSE
+)
def _challenge_splitter(data):
"""
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/7cefcdd5a2221cf279547ff98c037882c0ee13ed
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/7cefcdd5a2221cf279547ff98c037882c0ee13ed
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits