mirror of
https://github.com/prusnak/suez.git
synced 2026-08-13 12:33:13 +02:00
fix issues found by flake
This commit is contained in:
parent
b60afd74b3
commit
60bae54aa7
3 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import abc
|
||||
import json
|
||||
|
||||
from channel import Channel
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import codecs
|
||||
import json
|
||||
import posixpath
|
||||
import time
|
||||
|
|
|
|||
|
|
@ -20,12 +20,12 @@ class TerminalWeb:
|
|||
self.local_node = None
|
||||
|
||||
def is_good_inbound_peer(self, remote_pubkey):
|
||||
if not self.local_node or not "good_inbound_peers" in self.local_node:
|
||||
if not self.local_node or "good_inbound_peers" not in self.local_node:
|
||||
return False
|
||||
return remote_pubkey in self.local_node["good_inbound_peers"]
|
||||
|
||||
def is_good_outbound_peer(self, remote_pubkey):
|
||||
if not self.local_node or not "good_outbound_peers" in self.local_node:
|
||||
if not self.local_node or "good_outbound_peers" not in self.local_node:
|
||||
return False
|
||||
return remote_pubkey in self.local_node["good_outbound_peers"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue