comparison mercurial/util.py @ 32123:5f53c267e362

util: remove doc of long gone 'targetsize' argument Gone since fa836e050c50 (chunkbuffer: removed unused method and arg, 2007-10-11).
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 02 May 2017 10:20:44 -0700
parents a34b5e7c6683
children 6f173560c7f4
comparison
equal deleted inserted replaced
32121:5f8450df5562 32123:5f53c267e362
1722 class chunkbuffer(object): 1722 class chunkbuffer(object):
1723 """Allow arbitrary sized chunks of data to be efficiently read from an 1723 """Allow arbitrary sized chunks of data to be efficiently read from an
1724 iterator over chunks of arbitrary size.""" 1724 iterator over chunks of arbitrary size."""
1725 1725
1726 def __init__(self, in_iter): 1726 def __init__(self, in_iter):
1727 """in_iter is the iterator that's iterating over the input chunks. 1727 """in_iter is the iterator that's iterating over the input chunks."""
1728 targetsize is how big a buffer to try to maintain."""
1729 def splitbig(chunks): 1728 def splitbig(chunks):
1730 for chunk in chunks: 1729 for chunk in chunks:
1731 if len(chunk) > 2**20: 1730 if len(chunk) > 2**20:
1732 pos = 0 1731 pos = 0
1733 while pos < len(chunk): 1732 while pos < len(chunk):