diff hgext/convert/monotone.py @ 44020:ac3cb5e05a38

cleanup: replace contiguous spaces in regex patterns with an explicit count Flagged by PyCharm, this form should be more readable. Differential Revision: https://phab.mercurial-scm.org/D7765
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 28 Dec 2019 01:12:19 -0500
parents 9f70512ae2cf
children e699cebc3ae9
line wrap: on
line diff
--- a/hgext/convert/monotone.py	Mon Dec 30 12:17:02 2019 -0500
+++ b/hgext/convert/monotone.py	Sat Dec 28 01:12:19 2019 -0500
@@ -239,7 +239,7 @@
         #   key "test@selenic.com"
         # mtn >= 0.45:
         #   key [ff58a7ffb771907c4ff68995eada1c4da068d328]
-        certlist = re.split(br'\n\n      key ["\[]', certlist)
+        certlist = re.split(br'\n\n {6}key ["\[]', certlist)
         for e in certlist:
             m = self.cert_re.match(e)
             if m: