Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/twisted_8_1/twisted/conch/client/connect.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2 # See LICENSE for details.
3
4 #
5 import direct, unix
6
7 connectTypes = {"direct" : direct.connect,
8 "unix" : unix.connect}
9
10 def connect(host, port, options, verifyHostKey, userAuthObject):
11 useConnects = options.conns or ['unix', 'direct']
12 return _ebConnect(None, useConnects, host, port, options, verifyHostKey,
13 userAuthObject)
14
15 def _ebConnect(f, useConnects, host, port, options, vhk, uao):
16 if not useConnects:
17 return f
18 connectType = useConnects.pop(0)
19 f = connectTypes[connectType]
20 d = f(host, port, options, vhk, uao)
21 d.addErrback(_ebConnect, useConnects, host, port, options, vhk, uao)
22 return d
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/conch/client/agent.py ('k') | third_party/twisted_8_1/twisted/conch/client/default.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698