[Pkg-privacy-commits] [pyptlib] 85/136: don't output error on unknown methods requested
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 18421598154fb58fff6dedf7ed295eee87ad603a
Author: Ximin Luo <infinity0 at gmx.com>
Date: Thu Aug 15 15:00:02 2013 +0100
don't output error on unknown methods requested
---
pyptlib/core.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/pyptlib/core.py b/pyptlib/core.py
index 440d89d..afa8e0c 100644
--- a/pyptlib/core.py
+++ b/pyptlib/core.py
@@ -81,15 +81,9 @@ class TransportPlugin(object):
if cfg.allTransportsEnabled:
wanted_transports = transports.keys()
- unwanted_transports = []
else:
# return able in priority-order determined by plugin
wanted_transports = [t for t in transports if t in cfg.transports]
- # return unable in priority-order as requested by Tor
- unwanted_transports = [t for t in cfg.transports if t not in transports]
-
- for t in unwanted_transports:
- self.reportMethodError(t, 'unsupported transport')
self.served_transports = wanted_transports
return { 'transports': wanted_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