[tor-commits] [sbws/master] relayprioritizer: remove unneded assert
juga at torproject.org
juga at torproject.org
Fri Feb 15 17:51:28 UTC 2019
commit 25967c0a34564515cfbae848b727171d7bc45663
Author: juga0 <juga at riseup.net>
Date: Tue Dec 18 09:02:25 2018 +0000
relayprioritizer: remove unneded assert
---
sbws/lib/relayprioritizer.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/sbws/lib/relayprioritizer.py b/sbws/lib/relayprioritizer.py
index 963d08a..318d1a8 100644
--- a/sbws/lib/relayprioritizer.py
+++ b/sbws/lib/relayprioritizer.py
@@ -1,6 +1,5 @@
from decimal import Decimal
from ..lib.resultdump import ResultDump
-from ..lib.resultdump import Result
from ..lib.resultdump import ResultError
from ..lib.relaylist import RelayList
import copy
@@ -75,7 +74,6 @@ class RelayPrioritizer:
# The time before which we do not consider results valid anymore
oldest_allowed = time.time() - self.fresh_seconds
for result in results:
- assert isinstance(result, Result)
# Ignore results that are too far in the past
if result.time < oldest_allowed:
continue
More information about the tor-commits
mailing list