[tor-commits] [bridgedb/master] Make bridgedb.Main._reloadFn placeholder take any arguments.
isis at torproject.org
isis at torproject.org
Sun Jan 12 06:06:31 UTC 2014
commit 307e189927bd001c33e61a55ff9295bde46d044e
Author: Isis Lovecruft <isis at torproject.org>
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)
More information about the tor-commits
mailing list