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

Side by Side Diff: third_party/twisted_8_1/twisted/tap/telnet.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
2 # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
3 # See LICENSE for details.
4
5
6 """
7 Support module for making a telnet server with mktap.
8 """
9
10 from twisted.manhole import telnet
11 from twisted.python import usage
12 from twisted.application import strports
13
14 class Options(usage.Options):
15 synopsis = "Usage: mktap telnet [options]"
16 longdesc = "Makes a telnet server to a Python shell."
17 optParameters = [
18 ["username", "u", "admin","set the login username"],
19 ["password", "w", "changeme","set the password"],
20 ["port", "p", "4040", "port to listen on"],
21 ]
22 zsh_actions = {"username":"_users"}
23
24 def makeService(config):
25 t = telnet.ShellFactory()
26 t.username, t.password = config['username'], config['password']
27 s = strports.service(config['port'], t)
28 t.setService(s)
29 return s
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/tap/socks.py ('k') | third_party/twisted_8_1/twisted/test/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698