Show More
@@ -208,7 +208,7 b' def _defaultkwmaps(ui):' | |||
|
208 | 208 | def _shrinktext(text, subfunc): |
|
209 | 209 | '''Helper for keyword expansion removal in text. |
|
210 | 210 | Depending on subfunc also returns number of substitutions.''' |
|
211 | return subfunc(r'$\1$', text) | |
|
211 | return subfunc(br'$\1$', text) | |
|
212 | 212 | |
|
213 | 213 | def _preselect(wstatus, changed): |
|
214 | 214 | '''Retrieves modified and added files from a working directory state |
@@ -250,12 +250,12 b' class kwtemplater(object):' | |||
|
250 | 250 | @util.propertycache |
|
251 | 251 | def rekw(self): |
|
252 | 252 | '''Returns regex for unexpanded keywords.''' |
|
253 | return re.compile(r'\$(%s)\$' % self.escape) | |
|
253 | return re.compile(br'\$(%s)\$' % self.escape) | |
|
254 | 254 | |
|
255 | 255 | @util.propertycache |
|
256 | 256 | def rekwexp(self): |
|
257 | 257 | '''Returns regex for expanded keywords.''' |
|
258 | return re.compile(r'\$(%s): [^$\n\r]*? \$' % self.escape) | |
|
258 | return re.compile(br'\$(%s): [^$\n\r]*? \$' % self.escape) | |
|
259 | 259 | |
|
260 | 260 | def substitute(self, data, path, ctx, subfunc): |
|
261 | 261 | '''Replaces keywords in data with expanded template.''' |
General Comments 0
You need to be logged in to leave comments.
Login now