[Pkg-privacy-commits] [pyptlib] 86/136: fix typo and remove type-fudging

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:13 UTC 2015


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

infinity0 pushed a commit to branch master
in repository pyptlib.

commit 9de94a264c5c7f001e02d4f2e46d945c05599804
Author: Ximin Luo <infinity0 at gmx.com>
Date:   Thu Aug 15 15:00:35 2013 +0100

    fix typo and remove type-fudging
---
 pyptlib/core.py          | 3 ---
 pyptlib/server_config.py | 4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/pyptlib/core.py b/pyptlib/core.py
index afa8e0c..14c3319 100644
--- a/pyptlib/core.py
+++ b/pyptlib/core.py
@@ -66,9 +66,6 @@ class TransportPlugin(object):
             declared inputs that were actually wanted by Tor.
         """
         versions = SUPPORTED_TRANSPORT_VERSIONS
-        if type(transports) == str:
-            transports = [transports]
-
         cfg = self.config
 
         wanted_versions = [v for v in versions if v in cfg.managedTransportVer]
diff --git a/pyptlib/server_config.py b/pyptlib/server_config.py
index 88ffeda..ecaa277 100644
--- a/pyptlib/server_config.py
+++ b/pyptlib/server_config.py
@@ -55,7 +55,7 @@ class ServerConfig(config.Config):
         ORPort = cls.getEnv('TOR_PT_ORPORT', empty_or_valid_addr)
 
         # Get bind addresses.
-        def validate_sever_bindaddr(k, bindaddrs):
+        def validate_server_bindaddr(k, bindaddrs):
             serverBindAddr = {}
             bindaddrs = env_has_k(k, bindaddrs).split(',')
             for bindaddr in bindaddrs:
@@ -63,7 +63,7 @@ class ServerConfig(config.Config):
                 (addr, port) = util.parse_addr_spec(addrport)
                 serverBindAddr[transport_name] = (addr, port)
             return serverBindAddr
-        serverBindAddr = cls.getEnv('TOR_PT_SERVER_BINDADDR', validate_sever_bindaddr)
+        serverBindAddr = cls.getEnv('TOR_PT_SERVER_BINDADDR', validate_server_bindaddr)
 
         # Get transports.
         def validate_transports(k, transports):

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



More information about the Pkg-privacy-commits mailing list