Mercurial > hg-stable
diff hgext/convert/monotone.py @ 41551:fc09aafd3c36
convert: use raw string for regular expressions
This avoids a SyntaxWarning on Python 3.8.
Differential Revision: https://phab.mercurial-scm.org/D5821
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 09:03:10 -0800 |
parents | f3d3e09a29d1 |
children | 9b4a142a2035 |
line wrap: on
line diff
--- a/hgext/convert/monotone.py Mon Feb 04 09:01:49 2019 -0800 +++ b/hgext/convert/monotone.py Mon Feb 04 09:03:10 2019 -0800 @@ -214,7 +214,7 @@ # key "test@selenic.com" # mtn >= 0.45: # key [ff58a7ffb771907c4ff68995eada1c4da068d328] - certlist = re.split('\n\n key ["\[]', certlist) + certlist = re.split(br'\n\n key ["\[]', certlist) for e in certlist: m = self.cert_re.match(e) if m: