[diffoscope] 05/12: fix pep8 E731
Mattia Rizzolo
mattia at debian.org
Sat Sep 9 22:04:39 CEST 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository diffoscope.
commit 52053a33f2d8a66cb2f68095375d4ca3398c6cba
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Sep 9 21:40:45 2017 +0200
fix pep8 E731
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
diffoscope/comparators/missing_file.py | 2 +-
tests/test_presenters.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/diffoscope/comparators/missing_file.py b/diffoscope/comparators/missing_file.py
index 86cb5c7..8734f83 100644
--- a/diffoscope/comparators/missing_file.py
+++ b/diffoscope/comparators/missing_file.py
@@ -108,5 +108,5 @@ class MissingFile(File):
@property
def deb822(self):
class DummyChanges(dict):
- get_as_string = lambda self, _: ''
+ def get_as_string(self, _): return ''
return DummyChanges(Files=[], Version='')
diff --git a/tests/test_presenters.py b/tests/test_presenters.py
index 2443bfb..3c0a2c0 100644
--- a/tests/test_presenters.py
+++ b/tests/test_presenters.py
@@ -143,7 +143,7 @@ def test_html_option_with_stdout(capsys):
assert body.count('div class="difference"') == 4
def test_limited_print():
- fake = lambda x: None
+ def fake(x): return None
with pytest.raises(PrintLimitReached):
p = create_limited_print_func(fake, 5)
p("123456")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list