Show More
@@ -468,6 +468,7 b' def sub(context, mapping, args):' | |||
|
468 | 468 | |
|
469 | 469 | def startswith(context, mapping, args): |
|
470 | 470 | if len(args) != 2: |
|
471 | # i18n: "startswith" is a keyword | |
|
471 | 472 | raise error.ParseError(_("startswith expects two arguments")) |
|
472 | 473 | |
|
473 | 474 | patn = stringify(args[0][0](context, mapping, args[0][1])) |
@@ -480,6 +481,7 b' def startswith(context, mapping, args):' | |||
|
480 | 481 | def word(context, mapping, args): |
|
481 | 482 | """return nth word from a string""" |
|
482 | 483 | if not (2 <= len(args) <= 3): |
|
484 | # i18n: "word" is a keyword | |
|
483 | 485 | raise error.ParseError(_("word expects two or three arguments, got %d") |
|
484 | 486 | % len(args)) |
|
485 | 487 |
General Comments 0
You need to be logged in to leave comments.
Login now