From fa3a2dd23b3746effbca69c2459f6b1d0bec8fbf Mon Sep 17 00:00:00 2001 From: Ricky Zhou Date: Mon, 18 May 2009 23:02:38 -0400 Subject: [PATCH] Allow nItems to take longs as well. Signed-off-by: James Vega --- src/utils/str.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/str.py b/src/utils/str.py index 0e1af35dd..c6d801ce7 100644 --- a/src/utils/str.py +++ b/src/utils/str.py @@ -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: