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

[tor-commits] [bridgedb/master] Make bridgedb.Main._reloadFn placeholder take any arguments.



commit 307e189927bd001c33e61a55ff9295bde46d044e
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Tue Nov 5 06:05:02 2013 +0000

    Make bridgedb.Main._reloadFn placeholder take any arguments.
    
     * ADD a docstring to it, not that it is no longer a lambda function.
---
 lib/bridgedb/Main.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index 29d457b..75e20b3 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -186,7 +186,10 @@ def loadProxyList(cfg):
         f.close()
     return ipset
 
-_reloadFn = lambda x: True
+def _reloadFn(*args, **kwargs):
+    """Placeholder callback function for :func:`_handleSIGHUP`."""
+    return True
+
 def _handleSIGHUP(*args):
     """Called when we receive a SIGHUP; invokes _reloadFn."""
     reactor.callLater(0, _reloadFn, *args)



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