Show More
@@ -203,6 +203,7 b' def buildfunc(exp, context):' | |||
|
203 | 203 | |
|
204 | 204 | def join(context, mapping, args): |
|
205 | 205 | if not (1 <= len(args) <= 2): |
|
206 | # i18n: "join" is a keyword | |
|
206 | 207 | raise error.ParseError(_("join expects one or two arguments")) |
|
207 | 208 | |
|
208 | 209 | joinset = args[0][0](context, mapping, args[0][1]) |
@@ -223,6 +224,7 b' def join(context, mapping, args):' | |||
|
223 | 224 | |
|
224 | 225 | def sub(context, mapping, args): |
|
225 | 226 | if len(args) != 3: |
|
227 | # i18n: "sub" is a keyword | |
|
226 | 228 | raise error.ParseError(_("sub expects three arguments")) |
|
227 | 229 | |
|
228 | 230 | pat = stringify(args[0][0](context, mapping, args[0][1])) |
@@ -232,6 +234,7 b' def sub(context, mapping, args):' | |||
|
232 | 234 | |
|
233 | 235 | def if_(context, mapping, args): |
|
234 | 236 | if not (2 <= len(args) <= 3): |
|
237 | # i18n: "if" is a keyword | |
|
235 | 238 | raise error.ParseError(_("if expects two or three arguments")) |
|
236 | 239 | |
|
237 | 240 | test = stringify(args[0][0](context, mapping, args[0][1])) |
@@ -244,6 +247,7 b' def if_(context, mapping, args):' | |||
|
244 | 247 | |
|
245 | 248 | def ifeq(context, mapping, args): |
|
246 | 249 | if not (3 <= len(args) <= 4): |
|
250 | # i18n: "ifeq" is a keyword | |
|
247 | 251 | raise error.ParseError(_("ifeq expects three or four arguments")) |
|
248 | 252 | |
|
249 | 253 | test = stringify(args[0][0](context, mapping, args[0][1])) |
General Comments 0
You need to be logged in to leave comments.
Login now