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

[tor-commits] [bridgedb/master] Add comment to note that Stem also checks nickname spec conformity.



commit 842a1e26a15b83eb563671bb0929fe7a7e0f2e6e
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sun Dec 28 12:26:06 2014 +0000

    Add comment to note that Stem also checks nickname spec conformity.
---
 lib/bridgedb/bridges.py |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/bridges.py b/lib/bridgedb/bridges.py
index 4327f28..5aa801e 100644
--- a/lib/bridgedb/bridges.py
+++ b/lib/bridgedb/bridges.py
@@ -503,10 +503,13 @@ class BridgeBase(BridgeAddressBase):
     def nickname(self, value):
         """Set this Bridge's nickname to **value**.
 
+        .. note:: We don't need to call
+            :func:`bridgedb.parse.nickname.isValidRouterNickname() since Stem
+            will check nickname specification conformity.
+
         :param str value: The nickname of this Bridge.
         """
-        if isValidRouterNickname(value):
-            self._nickname = value
+        self._nickname = value
 
     @nickname.deleter
     def nickname(self, value):



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