Allow nItems to take longs as well.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
Ricky Zhou 2009-05-18 23:02:38 -04:00 committed by James Vega
parent d7dee482ca
commit fa3a2dd23b

View File

@ -302,7 +302,7 @@ def nItems(n, item, between=None):
>>> nItems(10, 'clock', between='grandfather')
'10 grandfather clocks'
"""
assert isinstance(n, int), \
assert isinstance(n, int) or isinstance(n, long), \
'The order of the arguments to nItems changed again, sorry.'
if between is None:
if n != 1: