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