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

Unified Diff: third_party/twisted_8_1/twisted/tap/manhole.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/twisted_8_1/twisted/tap/ftp.py ('k') | third_party/twisted_8_1/twisted/tap/portforward.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/twisted_8_1/twisted/tap/manhole.py
diff --git a/third_party/twisted_8_1/twisted/tap/manhole.py b/third_party/twisted_8_1/twisted/tap/manhole.py
deleted file mode 100644
index 33e8b11797b476dccc2191ba2f8c0f60ec7ad6f8..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/tap/manhole.py
+++ /dev/null
@@ -1,51 +0,0 @@
-
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-
-"""
-I am the support module for making a manhole server with mktap.
-"""
-
-from twisted.manhole import service
-from twisted.spread import pb
-from twisted.python import usage, util
-from twisted.cred import portal, checkers
-from twisted.application import strports
-import os, sys
-
-class Options(usage.Options):
- synopsis = "mktap manhole [options]"
- optParameters = [
- ["user", "u", "admin", "Name of user to allow to log in"],
- ["port", "p", str(pb.portno), "Port to listen on"],
- ]
-
- optFlags = [
- ["tracebacks", "T", "Allow tracebacks to be sent over the network"],
- ]
- zsh_actions = {"user" : "_users"}
-
- def opt_password(self, password):
- """Required. '-' will prompt or read a password from stdin.
- """
- # If standard input is a terminal, I prompt for a password and
- # confirm it. Otherwise, I use the first line from standard
- # input, stripping off a trailing newline if there is one.
- if password in ('', '-'):
- self['password'] = util.getPassword(confirm=1)
- else:
- self['password'] = password
- opt_w = opt_password
-
- def postOptions(self):
- if not self.has_key('password'):
- self.opt_password('-')
-
-def makeService(config):
- port, user, password = config['port'], config['user'], config['password']
- p = portal.Portal(
- service.Realm(service.Service(config["tracebacks"], config.get('namespace'))),
- [checkers.InMemoryUsernamePasswordDatabaseDontUse(**{user: password})]
- )
- return strports.service(port, pb.PBServerFactory(p, config["tracebacks"]))
« no previous file with comments | « third_party/twisted_8_1/twisted/tap/ftp.py ('k') | third_party/twisted_8_1/twisted/tap/portforward.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698