Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | compare |
Data Fields | |
linejunk | |
charjunk | |
Definition at line 638 of file difflib.py.
def __init__ | ( | self, | |
linejunk = None , |
|||
charjunk = None |
|||
) |
Construct a text differencer, with optional filters. The two optional keyword parameters are for filter functions: - `linejunk`: A function that should accept a single string argument, and return true iff the string is junk. The module-level function `IS_LINE_JUNK` may be used to filter out lines without visible characters, except for at most one splat ('#'). - `charjunk`: A function that should accept a string of length 1. The module-level function `IS_CHARACTER_JUNK` may be used to filter out whitespace characters (a blank or tab; **note**: bad idea to include newline in this!).
Definition at line 732 of file difflib.py.
def compare | ( | self, | |
a, | |||
b | |||
) |
Definition at line 752 of file difflib.py.
References Differ._dump(), Differ._fancy_helper(), Differ._fancy_replace(), Differ._plain_replace(), Differ._qformat(), Differ.charjunk, Differ.linejunk, sre_parse.min, and string.rstrip().
charjunk |
Definition at line 750 of file difflib.py.
linejunk |
Definition at line 749 of file difflib.py.