mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-26 01:53:21 +08:00
Remove erroneoous print statement
This commit is contained in:
@ -60,7 +60,6 @@ def get_diff(source, target): # type: (str, str) -> str
|
||||
source_lines = source.splitlines(True)
|
||||
target_lines = target.splitlines(True)
|
||||
diff = ''.join(difflib.ndiff(source_lines, target_lines))
|
||||
print(diff)
|
||||
return diff
|
||||
|
||||
|
||||
|
@ -126,21 +126,6 @@ def test_diffing_output(capsys):
|
||||
+ "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
|
||||
|
Reference in New Issue
Block a user