[meld: 1/7] issue: #dirdiff.apply_text_filters - Apply regex.sub instead of apply_text_filters; commit: using re
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 1/7] issue: #dirdiff.apply_text_filters - Apply regex.sub instead of apply_text_filters; commit: using re
- Date: Fri, 3 Aug 2018 22:29:16 +0000 (UTC)
commit 20a9846dc9b351230e74b8ed53277fd2d3b8de31
Author: hugosenari <hugosenari gmail com>
Date: Fri Jul 6 01:29:04 2018 -0300
issue: #dirdiff.apply_text_filters - Apply regex.sub instead of apply_text_filters; commit: using
regex.sub
meld/dirdiff.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 7a050814..8780707b 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -187,7 +187,8 @@ def _files_same(files, regexes, comparison_args):
# file comparisons.
contents = [b"\n".join(c.splitlines()) for c in contents]
- contents = [misc.apply_text_filters(c, regexes) for c in contents]
+ for regex in regexes:
+ contents = (regex.sub(b'', c) for c in contents)
if ignore_blank_lines:
contents = [remove_blank_lines(c) for c in contents]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]