[tor-commits] [sbws/maint-1.1] fix: flake8 errors

juga at torproject.org juga at torproject.org
Thu Mar 18 08:10:18 UTC 2021


commit 8f711dd176c750f09637877b291f3d25e507a7c8
Author: juga0 <juga at riseup.net>
Date:   Tue Mar 16 19:14:13 2021 +0000

    fix: flake8 errors
---
 sbws/lib/destination.py | 4 ++--
 sbws/lib/resultdump.py  | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/sbws/lib/destination.py b/sbws/lib/destination.py
index 28951a9..ae1e695 100644
--- a/sbws/lib/destination.py
+++ b/sbws/lib/destination.py
@@ -403,8 +403,8 @@ class DestinationList:
             dests.append(
                 Destination.from_config(
                     conf[dest_sec],
-                    # Multiply by the number of threads since all the threads will
-                    # fail at the same time.
+                    # Multiply by the number of threads since all the threads
+                    # will fail at the same time.
                     conf.getint("scanner", "max_download_size"),
                     conf.getint("scanner", "measurement_threads"),
                 )
diff --git a/sbws/lib/resultdump.py b/sbws/lib/resultdump.py
index 5ef45de..4c22209 100644
--- a/sbws/lib/resultdump.py
+++ b/sbws/lib/resultdump.py
@@ -400,7 +400,8 @@ 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,
             "relay_recent_priority_list": self.relay_recent_priority_list,
         }
 
@@ -830,7 +831,8 @@ 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,
             }
         )
         return d





More information about the tor-commits mailing list