From 2fb570e4572c86e41beaab3b3286aaac472dc0fd Mon Sep 17 00:00:00 2001 From: Rupus Reinefjord Date: Fri, 21 May 2021 22:30:02 +0200 Subject: [PATCH] Remove unnecessary parens around tuple unpacking --- pass2csv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pass2csv b/pass2csv index 8e7f0eb..3faee9c 100755 --- a/pass2csv +++ b/pass2csv @@ -37,7 +37,7 @@ def set_data(entry, data, exclude, get_fields, get_lines): fields = entry.setdefault('fields', {}) for i, line in enumerate(filtered_tail): - for (name, pattern) in get_fields: + for name, pattern in get_fields: if name in fields: # multiple patterns with same name, we've already found a match continue @@ -52,7 +52,7 @@ def set_data(entry, data, exclude, get_fields, get_lines): matching_lines = {} for i, line in enumerate(filtered_tail): - for (name, pattern) in get_lines: + for name, pattern in get_lines: match = pattern.search(line) if not match: continue @@ -241,14 +241,14 @@ if __name__ == '__main__': exclude_patterns.append(regexp) get_fields = [] - for (name, pattern) in parsed.get_fields: + for name, pattern in parsed.get_fields: regexp = compile_regexp(pattern) if not regexp: failed = True get_fields.append((name, regexp)) get_lines = [] - for (name, pattern) in parsed.get_lines: + for name, pattern in parsed.get_lines: regexp = compile_regexp(pattern) if not regexp: failed = True