[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 4cba2a52d777f4a1e330fcd6940d495d049b4df0
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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):



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits