Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Doc/library/difflib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,13 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
(or ``None``):

*linejunk*: A function that accepts a single string argument, and returns
true if the string is junk, or false if not. The default is ``None``. There
is also a module-level function :func:`IS_LINE_JUNK`, which filters out lines
without visible characters, except for at most one pound character (``'#'``)
-- however the underlying :class:`SequenceMatcher` class does a dynamic
analysis of which lines are so frequent as to constitute noise, and this
usually works better than using this function.
true if the string is junk, or false if not. The default is ``None``. There
is also a module-level function :func:`IS_LINE_JUNK`, which filters out
lines without visible characters, or containing one occurrence of the
pound, or hash symbol (``'#'``) -- however the underlying
:class:`SequenceMatcher` class does a dynamic analysis of which lines are
so frequent as to constitute noise, and this usually works better than
using this function.

*charjunk*: A function that accepts a character (a string of length 1), and
returns if the character is junk, or false if not. The default is module-level
Expand Down
Loading