"""
# Standard modules
-import sys
import os
import logging
import re
import pprint
import copy
-from difflib import Differ, SequenceMatcher, IS_LINE_JUNK, IS_CHARACTER_JUNK
+from difflib import Differ, IS_LINE_JUNK, IS_CHARACTER_JUNK
+# from difflib import SequenceMatcher
# Third party modules
import six
# Own modules
-__version__ = '0.2.3'
+__version__ = '0.2.4'
LOG = logging.getLogger(__name__)
DEFAULT_COMMENT_CHAR = '#'
return cls.re_linejunk.search(line) is not None
# -------------------------------------------------------------------------
- def __init__(self, comment_chars=None, ignore_empty=False,
+ def __init__(
+ self, comment_chars=None, ignore_empty=False,
ignore_whitespace=False, ignore_comment=False, case_insensitive=False):
self.comment_chars = []
return new_line + old_line
-
# -------------------------------------------------------------------------
def __str__(self):
"""
else:
line_list = [str(lines)]
- if ( not self.ignore_empty and not self.ignore_whitespace and
+ if (not self.ignore_empty and not self.ignore_whitespace and
not self.ignore_comment and not self.case_insensitive):
return line_list
if self.ignore_whitespace:
item_cp = self.re_whitespace.sub(' ', item_cp)
if self.ignore_comment:
- item_cp = = self.remove_comments(item_cp)
+ item_cp = self.remove_comments(item_cp)
if self.case_insensitive:
item_cp = item_cp.lower()
reult_list.append(item_cp)