mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#14804: Remove [] around optional arguments with default values
Mostly just mechanical removal of []. In some rare cases I've pulled the default value up into the argument list.
This commit is contained in:
parent
ed8cf7a543
commit
e58ce01f30
25 changed files with 61 additions and 61 deletions
|
@ -84,7 +84,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
|
|||
The constructor for this class is:
|
||||
|
||||
|
||||
.. function:: __init__([tabsize][, wrapcolumn][, linejunk][, charjunk])
|
||||
.. function:: __init__(tabsize=8, wrapcolumn=None, linejunk=None, charjunk=IS_CHARACTER_JUNK)
|
||||
|
||||
Initializes instance of :class:`HtmlDiff`.
|
||||
|
||||
|
@ -344,7 +344,7 @@ SequenceMatcher Objects
|
|||
The :class:`SequenceMatcher` class has this constructor:
|
||||
|
||||
|
||||
.. class:: SequenceMatcher([isjunk[, a[, b[, autojunk=True]]]])
|
||||
.. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True)
|
||||
|
||||
Optional argument *isjunk* must be ``None`` (the default) or a one-argument
|
||||
function that takes a sequence element and returns true if and only if the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue