1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-11 08:23:49 +03:00

PEP8: fix E306: expected 1 blank line before a nested definition, found 0

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Joe Guo
2018-07-30 18:21:32 +12:00
committed by Douglas Bagnall
parent 115f2a71b8
commit 4d529c400b
6 changed files with 33 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ class MessagingTests(TestCase):
def test_register(self):
x = self.get_context()
def callback():
pass
msg_type = x.register((callback, None))
@@ -82,6 +83,7 @@ class MessagingTests(TestCase):
msg_ping = 0
server_ctx = self.get_context((0, 1))
def ping_callback(got_ping, msg_type, src, data):
got_ping["count"] += 1
server_ctx.send(src, msg_pong, data)
@@ -123,6 +125,7 @@ class MessagingTests(TestCase):
pid = os.getpid()
server_ctx = self.get_context((pid, 1))
def ping_callback(got_ping, msg_type, src, data):
got_ping["count"] += 1
server_ctx.send(src, msg_pong, data)