mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 04:34:16 +00:00
Remove erroneoous print statement
This commit is contained in:
parent
0ff23d4e9f
commit
93b7b66cda
2 changed files with 0 additions and 16 deletions
|
|
@ -60,7 +60,6 @@ def get_diff(source, target): # type: (str, str) -> str
|
||||||
source_lines = source.splitlines(True)
|
source_lines = source.splitlines(True)
|
||||||
target_lines = target.splitlines(True)
|
target_lines = target.splitlines(True)
|
||||||
diff = ''.join(difflib.ndiff(source_lines, target_lines))
|
diff = ''.join(difflib.ndiff(source_lines, target_lines))
|
||||||
print(diff)
|
|
||||||
return diff
|
return diff
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,21 +126,6 @@ def test_diffing_output(capsys):
|
||||||
+ "foo": "bar"
|
+ "foo": "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
- "foo":
|
|
||||||
- "bar",
|
|
||||||
- "alist": [2, 34, 234],
|
|
||||||
+ "alist": [
|
|
||||||
+ 2,
|
|
||||||
+ 34,
|
|
||||||
+ 234
|
|
||||||
+ ],
|
|
||||||
- "blah": null
|
|
||||||
+ "blah": null,
|
|
||||||
? +
|
|
||||||
+ "foo": "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
# output should include a line with the filepath, build it here
|
# output should include a line with the filepath, build it here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue