[Pkg-privacy-commits] [onionbalance] 18/117: Changing TODO comment format

Donncha O'Cearbahill donncha-guest at moszumanska.debian.org
Wed Dec 16 23:18:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

donncha-guest pushed a commit to branch debian/sid
in repository onionbalance.

commit 122f2045fbf1fbe11b889878f22f8f63d325c64d
Author: Donncha O'Cearbhaill <donncha at donncha.is>
Date:   Mon Jun 15 02:17:06 2015 +0100

    Changing TODO comment format
---
 onionbalance/descriptor.py    | 8 ++++----
 onionbalance/hiddenservice.py | 2 +-
 onionbalance/manager.py       | 1 -
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/onionbalance/descriptor.py b/onionbalance/descriptor.py
index b704c3f..ae221b0 100644
--- a/onionbalance/descriptor.py
+++ b/onionbalance/descriptor.py
@@ -19,8 +19,8 @@ def generate_hs_descriptor(permanent_key, introduction_point_list=None,
     """
     High-level interface for generating a signed HS descriptor
 
-    TODO: Allow generation of descriptors for future timeperiod,
-          to help clients with a skewed clock
+    .. todo:: Allow generation of descriptors for future time periods
+          to help clients which have a skewed clock.
     """
 
     if not timestamp:
@@ -171,7 +171,7 @@ def fetch_descriptor(controller, onion_address, hsdir=None):
     """
     Try fetch a HS descriptor from any of the responsible HSDirs
 
-    TODO: Allow a custom HSDir to be specified
+    .. todo:: Allow a custom HSDir to be specified
     """
     logger.info("Sending HS descriptor fetch for %s.onion" % onion_address)
     response = controller.msg("HSFETCH %s" % (onion_address))
@@ -179,7 +179,7 @@ def fetch_descriptor(controller, onion_address, hsdir=None):
     if not response.is_ok():
         if response_code == "510":
             logger.error("This version of Tor does not support HSFETCH "
-                         "command")
+                         "command.")
             sys.exit(1)
         if response_code == "552":
             raise stem.InvalidRequest(response_code, response_content)
diff --git a/onionbalance/hiddenservice.py b/onionbalance/hiddenservice.py
index 60da101..c11dff1 100644
--- a/onionbalance/hiddenservice.py
+++ b/onionbalance/hiddenservice.py
@@ -110,7 +110,7 @@ class HiddenService(object):
         """
         Choose set of introduction points from all fresh descriptors
 
-        TODO: There are probably better algorithms for choosing which
+        .. todo:: There are probably better algorithms for choosing which
         introduction points to include. If we have more than
         `max_intro_points` introduction points, we will need to exclude
         some.  It probably sensible to prefer IPs which are new and
diff --git a/onionbalance/manager.py b/onionbalance/manager.py
index ba99b8e..a96b1b7 100644
--- a/onionbalance/manager.py
+++ b/onionbalance/manager.py
@@ -16,7 +16,6 @@ from stem.control import Controller, EventType
 import yaml
 import schedule
 
-# import .onionbalance.log
 from onionbalance import log
 from onionbalance import util
 from onionbalance import config

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionbalance.git



More information about the Pkg-privacy-commits mailing list