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