mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Allow nItems to take longs as well.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
d7dee482ca
commit
fa3a2dd23b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user