summaryrefslogtreecommitdiffstats
path: root/Doc/library/difflib.rst
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-05-22 08:27:40 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-05-22 08:27:40 (GMT)
commite58ce01f303c8e0a7ddf008abc365cfe6fb4416c (patch)
tree4a06bd6c073810b2def83534787ec7d56fd672c6 /Doc/library/difflib.rst
parented8cf7a543b3ebe2d61c16d0f87e60029fd2c478 (diff)
downloadcpython-e58ce01f303c8e0a7ddf008abc365cfe6fb4416c.zip
cpython-e58ce01f303c8e0a7ddf008abc365cfe6fb4416c.tar.gz
cpython-e58ce01f303c8e0a7ddf008abc365cfe6fb4416c.tar.bz2
#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.
Diffstat (limited to 'Doc/library/difflib.rst')
-rw-r--r--Doc/library/difflib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst
index 225b486..f3b23e0 100644
--- a/Doc/library/difflib.rst
+++ b/Doc/library/difflib.rst
@@ -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