portend: patch for black 19.10b0

This commit is contained in:
Kai Wohlfahrt 2019-11-09 12:02:24 +00:00 committed by Jon
parent a4f0c51c0c
commit 62e927d446
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,13 @@
diff --git a/test_portend.py b/test_portend.py
index b2de8c2..3f90276 100644
--- a/test_portend.py
+++ b/test_portend.py
@@ -21,7 +21,7 @@ def socket_infos():
def id_for_info(info):
- af, = info[:1]
+ (af,) = info[:1]
return str(af)

View file

@ -10,6 +10,7 @@ buildPythonPackage rec {
sha256 = "19dc27bfb3c72471bd30a235a4d5fbefef8a7e31cab367744b5d87a205e7bfd9";
};
patches = [ ./black-19.10b0.patch ];
postPatch = ''
substituteInPlace pytest.ini --replace "--flake8" ""
'';