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

Unified Diff: third_party/twisted_8_1/twisted/protocols/finger.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
Index: third_party/twisted_8_1/twisted/protocols/finger.py
diff --git a/third_party/twisted_8_1/twisted/protocols/finger.py b/third_party/twisted_8_1/twisted/protocols/finger.py
deleted file mode 100644
index 409b82c5a3ca9e0d9628c5708845aa92c432b626..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/protocols/finger.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-
-"""The Finger User Information Protocol (RFC 1288)"""
-
-from twisted.protocols import basic
-import string
-
-class Finger(basic.LineReceiver):
-
- def lineReceived(self, line):
- parts = string.split(line)
- if not parts:
- parts = ['']
- if len(parts) == 1:
- slash_w = 0
- else:
- slash_w = 1
- user = parts[-1]
- if '@' in user:
- host_place = string.rfind(user, '@')
- user = user[:host_place]
- host = user[host_place+1:]
- return self.forwardQuery(slash_w, user, host)
- if user:
- return self.getUser(slash_w, user)
- else:
- return self.getDomain(slash_w)
-
- def _refuseMessage(self, message):
- self.transport.write(message+"\n")
- self.transport.loseConnection()
-
- def forwardQuery(self, slash_w, user, host):
- self._refuseMessage('Finger forwarding service denied')
-
- def getDomain(self, slash_w):
- self._refuseMessage('Finger online list denied')
-
- def getUser(self, slash_w, user):
- self.transport.write('Login: '+user+'\n')
- self._refuseMessage('No such user')
« no previous file with comments | « third_party/twisted_8_1/twisted/protocols/ethernet.py ('k') | third_party/twisted_8_1/twisted/protocols/ftp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698