]> granicus.if.org Git - python/commitdiff
Fix docstring for deque ctor to mark iterable parameter optional
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 31 Oct 2012 09:50:00 +0000 (11:50 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 31 Oct 2012 09:50:00 +0000 (11:50 +0200)
Modules/_collectionsmodule.c

index 41ce61f1ebd7ba621075637d2e98dfb15334f834..242abf2afd024fa6bee910cd597e82d0be6910fa 100644 (file)
@@ -1077,7 +1077,7 @@ static PyMethodDef deque_methods[] = {
 };
 
 PyDoc_STRVAR(deque_doc,
-"deque(iterable[, maxlen]) --> deque object\n\
+"deque([iterable[, maxlen]]) --> deque object\n\
 \n\
 Build an ordered collection with optimized access from its endpoints.");