[tor-commits] [sbws/master] fix: 2nd round of automatic format
juga at torproject.org
juga at torproject.org
Thu Mar 18 08:11:40 UTC 2021
commit d6de5a4b2a91e06e1c8b506ec28d227dec662567
Author: juga0 <juga at riseup.net>
Date: Wed Mar 17 09:21:42 2021 +0000
fix: 2nd round of automatic format
black insists to keep one long line and flake complain, therefore make
flake to ignore it.
---
sbws/lib/resultdump.py | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/sbws/lib/resultdump.py b/sbws/lib/resultdump.py
index 4c22209..e60f3bc 100644
--- a/sbws/lib/resultdump.py
+++ b/sbws/lib/resultdump.py
@@ -400,8 +400,7 @@ class Result:
"scanner": self.scanner,
"version": self.version,
"relay_in_recent_consensus": self.relay_in_recent_consensus,
- "relay_recent_measurement_attempt":
- self.relay_recent_measurement_attempt,
+ "relay_recent_measurement_attempt": self.relay_recent_measurement_attempt, # noqa
"relay_recent_priority_list": self.relay_recent_priority_list,
}
@@ -507,11 +506,7 @@ class ResultError(Result):
def to_dict(self):
d = super().to_dict()
- d.update(
- {
- "msg": self.msg,
- }
- )
+ d.update({"msg": self.msg})
return d
@@ -831,8 +826,7 @@ class ResultSuccess(Result):
"relay_burst_bandwidth": self.relay_burst_bandwidth,
"relay_observed_bandwidth": self.relay_observed_bandwidth,
"consensus_bandwidth": self.consensus_bandwidth,
- "consensus_bandwidth_is_unmeasured":
- self.consensus_bandwidth_is_unmeasured,
+ "consensus_bandwidth_is_unmeasured": self.consensus_bandwidth_is_unmeasured, # noqa
}
)
return d
More information about the tor-commits
mailing list