1
0
forked from pool/python-mutmut
python-mutmut/merged_4405bafe.patch

23 lines
842 B
Diff
Raw Normal View History

From 4405bafe48981e63c2b560e28f6e85ed0e601f23 Mon Sep 17 00:00:00 2001
From: Nathan Klapstein <nklapste@ualberta.ca>
Date: Thu, 22 Aug 2019 18:07:48 -0400
Subject: [PATCH] fixing issue with whatthepatch 0.0.6
---
mutmut/__main__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mutmut/__main__.py b/mutmut/__main__.py
index 5066393..396767a 100644
--- a/mutmut/__main__.py
+++ b/mutmut/__main__.py
@@ -635,7 +635,7 @@ def read_patch_data(patch_file_path):
diffs = whatthepatch.parse_patch(f.read())
return {
- diff.header.new_path: {line_number for old_line_number, line_number, text in diff.changes if old_line_number is None}
+ diff.header.new_path: {line_number for old_line_number, line_number, text, *_ in diff.changes if old_line_number is None}
for diff in diffs
}