[tor-commits] [bridgedb/develop] Use PluggableTransports._runChecks() only if initialised with params.

isis at torproject.org isis at torproject.org
Thu Feb 19 02:21:14 UTC 2015


commit 4cba2a52d777f4a1e330fcd6940d495d049b4df0
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Dec 24 08:53:38 2014 +0000

    Use PluggableTransports._runChecks() only if initialised with params.
---
 lib/bridgedb/bridges.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/bridgedb/bridges.py b/lib/bridgedb/bridges.py
index 61ea860..4968988 100644
--- a/lib/bridgedb/bridges.py
+++ b/lib/bridgedb/bridges.py
@@ -285,8 +285,7 @@ class PluggableTransport(BridgeAddressBase):
         # parameters, or use the ``updateFromStemTransport()`` method, we'll
         # only use the ``_runChecks()`` method now if we were initialised with
         # parameters:
-        if (self.fingerprint or self.address or self.port or
-            self.methodname or self.arguments):
+        if (fingerprint or address or port or methodname or arguments):
             self._runChecks()
 
     def _parseArgumentsIntoDict(self, argumentList):





More information about the tor-commits mailing list