Added first exception for pluralize.

This commit is contained in:
Jeremy Fincher 2003-09-07 05:48:20 +00:00
parent d3f1ca724f
commit 757154313e

View File

@ -272,7 +272,7 @@ def wrapLines(s):
L.append(textwrap.fill(line)) L.append(textwrap.fill(line))
return '\n'.join(L) return '\n'.join(L)
plurals = {} plurals = {'match': 'matches'}
def pluralize(i, s): def pluralize(i, s):
"""Returns the plural of s based on its number i. Put any exceptions to """Returns the plural of s based on its number i. Put any exceptions to
the general English rule of appending 's' in the plurals dictionary. the general English rule of appending 's' in the plurals dictionary.