commit ca93c11caf797546a0bd45574544b7ca9b622383 Author: Damian Johnson atagar@torproject.org Date: Tue Apr 17 09:09:52 2018 -0700
Fix exit policy caching keys
Oops, great catch from dmr on #25423. We had one spot referring to the key as 'exit_policy' and two that were 'exitpolicy'. Sandardizing on the former. --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py index 3db4d35a..93f8fc19 100644 --- a/stem/control.py +++ b/stem/control.py @@ -1073,7 +1073,7 @@ class Controller(BaseController): self._set_cache(dict((k, None) for k in event.config), 'getconf')
if 'exitpolicy' in event.config.keys(): - self._set_cache({'exitpolicy': None}) + self._set_cache({'exit_policy': None})
self.add_event_listener(_confchanged_listener, EventType.CONF_CHANGED)
@@ -2411,7 +2411,7 @@ class Controller(BaseController): to_cache[param] = value
if param == 'exitpolicy': - self._set_cache({'exitpolicy': None}) + self._set_cache({'exit_policy': None}) elif 'hidden' in param: self._set_cache({'hidden_service_conf': None})
tor-commits@lists.torproject.org