Skip to content

Commit fa6b57b

Browse files
author
MarcoFalke
committed
test: Fix whitespace in p2p_permissions.py
1 parent faf4081 commit fa6b57b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional/p2p_permissions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def run_test(self):
4848
ip_port = "127.0.0.1:{}".format(p2p_port(1))
4949
self.replaceinconfig(1, "bind=127.0.0.1", "whitebind=bloomfilter,forcerelay@" + ip_port)
5050
self.checkpermission(
51-
51+
5252
# Check parameter interaction forcerelay should activate relay
53-
["noban", "bloomfilter", "forcerelay", "relay" ],
53+
["noban", "bloomfilter", "forcerelay", "relay"],
5454
False)
5555
self.replaceinconfig(1, "whitebind=bloomfilter,forcerelay@" + ip_port, "bind=127.0.0.1")
5656

@@ -95,9 +95,10 @@ def checkpermission(self, args, expectedPermissions, whitelisted):
9595

9696
def replaceinconfig(self, nodeid, old, new):
9797
with open(self.nodes[nodeid].bitcoinconf, encoding="utf8") as f:
98-
newText=f.read().replace(old, new)
98+
newText = f.read().replace(old, new)
9999
with open(self.nodes[nodeid].bitcoinconf, 'w', encoding="utf8") as f:
100100
f.write(newText)
101101

102+
102103
if __name__ == '__main__':
103104
P2PPermissionsTests().main()

0 commit comments

Comments
 (0)