add doc for CountEmitter 'of' parameter

This commit is contained in:
Jeremy Carbaugh 2011-09-14 14:21:04 -04:00
parent ddd81c96b1
commit ecbd41808a

View File

@ -59,6 +59,7 @@ class CountEmitter(Emitter):
CountEmitter() by default writes to stdout.
CountEmitter(outfile=open('text', 'w')) would print to a file name test.
CountEmitter(every=1000000) would write the count every 1,000,000 records.
CountEmitter(every=100, of=2000) would write "<count> of 2000" every 100 records.
"""
def __init__(self, every=1000, of=None, outfile=None, format=None):