Permalink
Browse files

i18n.LazyString: format can accept variable number of arguments

  • Loading branch information...
1 parent a33ab39 commit 72f4a5ed0b7bee73cd6ce967593fbfdc2b1bd497 @temoto temoto committed with bbangert Jan 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 pylons/i18n/translation.py
@@ -44,8 +44,8 @@ def __str__(self):
def __mod__(self, other):
return self.eval() % other
- def format(self, other):
- return self.eval().format(other)
+ def format(self, *args):
+ return self.eval().format(*args)
def lazify(func):

0 comments on commit 72f4a5e

Please sign in to comment.