[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Fix Main.reload() function to work with changed parameters.
commit 46e613b608dd416c2afd11baad2c4d72e48de287
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Fri Nov 15 15:09:55 2013 +0000
Fix Main.reload() function to work with changed parameters.
---
lib/bridgedb/Main.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index 70f8dee..3a22914 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -291,7 +291,7 @@ def loadProxyList(cfg):
f.close()
return ipset
-def _reloadFn(*args, **kwargs):
+def _reloadFn():
"""Placeholder callback function for :func:`_handleSIGHUP`."""
return True
@@ -413,7 +413,7 @@ def startup(options, rundir, configFile):
for pseudoRing in config.FILE_BUCKETS.keys():
splitter.addPseudoRing(pseudoRing)
- def reload(*args):
+ def reload():
"""Reload settings, proxy lists, and bridges.
The contents of the config file should be compiled (it's roughly 20-30
@@ -491,8 +491,8 @@ def startup(options, rundir, configFile):
_reloadFn = reload
signal.signal(signal.SIGHUP, _handleSIGHUP)
- # And actually load it to start.
- reload(options)
+ # And actually load it to start parsing.
+ reload()
# Configure HTTP and/or HTTPS servers.
if cfg.HTTPS_DIST and cfg.HTTPS_SHARE:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits